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
|
//////////////////////////////////////////////////////////////////
//
// FirstPage.h : header file
//
// First 'welcome' page of wizard. Not much in here
//
//////////////////////////////////////////////////////////////////
#if !defined(AFX_FIRSTPAGE_H__77AE1844_1B1F_11D2_B2D4_0020182B97FC__INCLUDED_)
#define AFX_FIRSTPAGE_H__77AE1844_1B1F_11D2_B2D4_0020182B97FC__INCLUDED_
#include "resource.h"
#include <atlprsht.h>
#include <ContextHelp.h>
/////////////////////////////////////////////////////////////////////////////
// CFirstPage dialog
class CFirstPage
: public CPropertyPage,
public CContextHelp<CFirstPage>
{
// Construction
public:
CFirstPage(CPropertySheet* pParent, UINT nPos = WIZPAGE_MIDDLE);
~CFirstPage();
// Dialog Data
enum { IDD = IDD_FIRSTPAGE };
BEGIN_MSG_MAP(CFirstPage)
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
NOTIFY_CODE_HANDLER(PSN_SETACTIVE, OnSetActive)
NOTIFY_CODE_HANDLER(PSN_HELP, OnHelp)
COMMAND_HANDLER(IDC_ADVANCED, BN_CLICKED, OnAdvanced)
CHAIN_MSG_MAP(CContextHelp<CFirstPage>)
END_MSG_MAP()
BEGIN_HELP_MAP(NS_HELP_FILE)
HELP_ID(IDC_ADVANCED, 3001)
END_HELP_MAP
// Messages
public:
LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
LRESULT OnAdvanced(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
LRESULT OnHelp(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
LRESULT OnSetActive(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
// Implementation
protected:
CPropertySheet* m_pParentSheet;
const UINT m_nPos;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_FIRSTPAGE_H__77AE1844_1B1F_11D2_B2D4_0020182B97FC__INCLUDED_)
|