#pragma once #include // CIndicatorDlg 对话框 class CIndicatorDlg : public CDialogEx { DECLARE_DYNAMIC(CIndicatorDlg) public: CIndicatorDlg(std::function stop = std::function(), CWnd* pParent = nullptr); // 标准构造函数 virtual ~CIndicatorDlg(); void setindicatortext(int aquire, int updata); // 对话框数据 #ifdef AFX_DESIGN_TIME enum { IDD = IDD_INDICATOR }; #endif protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 virtual BOOL OnInitDialog(); DECLARE_MESSAGE_MAP() afx_msg void OnBnClickedBtnstopscan(); std::function m_stop; public: afx_msg void OnClose(); };