diff options
Diffstat (limited to 'Checklist/FirstPage.h')
-rw-r--r-- | Checklist/FirstPage.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/Checklist/FirstPage.h b/Checklist/FirstPage.h new file mode 100644 index 0000000..8511e25 --- /dev/null +++ b/Checklist/FirstPage.h @@ -0,0 +1,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_) |