-
Notifications
You must be signed in to change notification settings - Fork 4
/
ProgressDlg.h
52 lines (42 loc) · 1.01 KB
/
ProgressDlg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#pragma once
#include "afxdialogex.h"
// CProgressDlg 对话框
class CProgressDlg : public CDialog
{
DECLARE_DYNAMIC(CProgressDlg)
public:
CProgressDlg(int *phAutoHandle,
BasicInformation *pBaseInfo,
CString strInputFile,
BOOL bAdvance = FALSE,
BOOL bCmdMode = FALSE,
CWnd* pParent = nullptr); // 标准构造函数
virtual ~CProgressDlg();
int GetDecResult() {
return m_nResult;
}
// 对话框数据
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_PROGRESS };
#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
DECLARE_MESSAGE_MAP()
private:
static LPCTSTR m_lpszInfo;
CString m_strStatus;
std::unique_ptr<std::thread> m_pThreadDecompile;
int *m_phAutoHandle;
BasicInformation *m_pBaseInfo;
CString m_strInputFile;
int m_nResult;
int m_nCount;
BOOL m_bAdvance;
BOOL m_bCmdMode;
public:
afx_msg void OnTimer(UINT_PTR nIDEvent);
virtual BOOL OnInitDialog();
virtual void OnOK();
virtual void OnCancel();
virtual BOOL PreTranslateMessage(MSG* pMsg);
};