mirror of http://192.168.1.51:8099/lmh188/twain3.0
45 lines
787 B
C++
45 lines
787 B
C++
|
// CIndicatorDlg.cpp: 实现文件
|
|||
|
//
|
|||
|
|
|||
|
#include "stdafx.h"
|
|||
|
#include "CIndicatorDlg.h"
|
|||
|
#include "afxdialogex.h"
|
|||
|
#include "resource.h"
|
|||
|
|
|||
|
|
|||
|
// CIndicatorDlg 对话框
|
|||
|
|
|||
|
IMPLEMENT_DYNAMIC(CIndicatorDlg, CDialogEx)
|
|||
|
|
|||
|
CIndicatorDlg::CIndicatorDlg(std::function<void()> 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();
|
|||
|
}
|