twain2/IndicatorDlg.cpp

67 lines
2.2 KiB
C++
Raw Normal View History

<EFBFBD><EFBFBD>// IndicatorDlg.cpp: <EFBFBD>[<EFBFBD>s<EFBFBD>e<EFBFBD>N
//
#include "stdafx.h"
#include "IndicatorDlg.h"
#include "afxdialogex.h"
// IndicatorDlg <EFBFBD>[݋Fh
IMPLEMENT_DYNAMIC(IndicatorDlg, CDialog)
IndicatorDlg::IndicatorDlg(MFC_UI *pUI,CWnd* pParent /*=nullptr*/)
: CDialog(IDD_DIALOG_INDICATOR, pParent)
{
m_ui=pUI;
//SetTimer(1, 100, NULL);
}
IndicatorDlg::~IndicatorDlg()
{
//KillTimer(1);
}
void IndicatorDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(IndicatorDlg, CDialog)
ON_BN_CLICKED(IDC_BTNSTOPSCAN, &IndicatorDlg::OnBnClickedBtnstopscan)
ON_WM_CLOSE()
END_MESSAGE_MAP()
// IndicatorDlg <EFBFBD>mo`Yt z<EFBFBD>^
void IndicatorDlg::OnBnClickedBtnstopscan()
{
// TODO: (Wdk<EFBFBD>m<EFBFBD>R<EFBFBD>c<EFBFBD>N<EFBFBD><EFBFBD>wYt z<EFBFBD>^<EFBFBD>Nx
CheckCnacel();
}
void IndicatorDlg::CheckCnacel()
{
int ret=IDYES;
if (!m_ui->m_pDS->IsImageQueueEmpty())
{
ret=MessageBox("<00>N g<>V<EFBFBD>P*g O<><4F><EFBFBD>[<5B>k <0C>nx<6E><78>\Pbk O<><4F><1F>","<00>c:y",MB_YESNO|MB_ICONWARNING);//""
}
if (ret==IDYES)
{
m_ui->Cancel();
}
}
void IndicatorDlg::OnClose()
{
// TODO: (Wdk<EFBFBD>m<EFBFBD>R<EFBFBD>mo`Yt z<EFBFBD>^<EFBFBD>Nx<EFBFBD>T/b<EFBFBD>(u؞<EFBFBD><EFBFBD><P
CheckCnacel();
CDialog::OnClose();
}