// CIndicatorDlg.cpp: 实现文件 // #include "stdafx.h" #include "CIndicatorDlg.h" #include "afxdialogex.h" #include "resource.h" // CIndicatorDlg 对话框 IMPLEMENT_DYNAMIC(CIndicatorDlg, CDialogEx) CIndicatorDlg::CIndicatorDlg(std::function stop, CWnd* pParent /*=nullptr*/) : CDialogEx(IDD_INDICATOR, pParent) , m_stop(stop) { } CIndicatorDlg::~CIndicatorDlg() { } void CIndicatorDlg::DoDataExchange(CDataExchange* pDX) { CDialogEx::DoDataExchange(pDX); } BEGIN_MESSAGE_MAP(CIndicatorDlg, CDialogEx) ON_BN_CLICKED(IDC_BTNSTOPSCAN, &CIndicatorDlg::OnBnClickedBtnstopscan) END_MESSAGE_MAP() // CIndicatorDlg 消息处理程序 void CIndicatorDlg::OnBnClickedBtnstopscan() { // TODO: 在此添加控件通知处理程序代码 if (m_stop) m_stop(); }