-
Notifications
You must be signed in to change notification settings - Fork 17
/
ControllerDlg.h
81 lines (63 loc) · 1.51 KB
/
ControllerDlg.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
//
// コントローラダイアログクラス
//
#ifndef __CCONTROLLERDLG_INCLUDED__
#define __CCONTROLLERDLG_INCLUDED__
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <string>
using namespace std;
#include "Wnd.h"
#include "Config.h"
class CControllerPageDlg : public CWnd
{
public:
BOOL Create( UINT nID, HWND hWndParent );
// Override from CWnd
void Destroy();
protected:
// Message map
DLG_MESSAGE_MAP()
DLGMSG OnInitDialog( DLGMSGPARAM );
DLGCMD OnClicked( DLGCMDPARAM );
//
UINT m_nPageID;
private:
};
class CControllerDlg : public CWnd
{
public:
// Override from CWnd
INT DoModal( HWND hWndParent );
// Override from CWnd
BOOL PreTranslateMessage( MSG* pMsg );
protected:
void OnInitialMember();
void OnPageSetup( UINT nPage );
// Message map
DLG_MESSAGE_MAP()
DLGMSG OnInitDialog( DLGMSGPARAM );
DLGMSG OnDestroy( DLGMSGPARAM );
DLGMSG OnTimer( DLGMSGPARAM );
DLGNOTIFY OnSelectChange( DLGNOTIFYPARAM );
DLGNOTIFY OnSettingSelectChange( DLGCMDPARAM );
DLGCMD OnClicked( DLGCMDPARAM );
DLGCMD OnOK( DLGCMDPARAM );
DLGCMD OnCancel( DLGCMDPARAM );
DLGCMD OnDefault( DLGCMDPARAM );
//
enum { PAGE_MAX=12 };
BOOL m_bCancelMode;
INT m_ControlID;
INT m_TimerID;
INT m_TimerStart;
INT m_TimerCount;
INT m_SettingSel;
INT m_PageSel;
INT m_PageNum;
CControllerPageDlg m_Page[PAGE_MAX];
CCfgController m_ConfigSave;
static UINT ControllerPageID[];
private:
};
#endif // !__CCONTROLLERDLG_INCLUDED__