00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #if !defined(AFX_WIZARDSHEET_H__E2500C10_98B2_48B0_9165_975E5444679A__INCLUDED_)
00023 #define AFX_WIZARDSHEET_H__E2500C10_98B2_48B0_9165_975E5444679A__INCLUDED_
00024
00025 #pragma once
00026
00027 class CSkinWindow;
00028
00029
00030 class CWizardSheet : public CPropertySheet
00031 {
00032
00033 public:
00034 CWizardSheet(CWnd *pParentWnd = NULL, UINT iSelectPage = 0);
00035 virtual ~CWizardSheet();
00036
00037
00038 public:
00039 CRect m_rcPage;
00040 CBitmap m_bmHeader;
00041 CSkinWindow* m_pSkin;
00042
00043
00044 public:
00045 static BOOL RunWizard(CWnd* pParent = NULL);
00046
00047
00048 public:
00049 DECLARE_MESSAGE_MAP()
00050 virtual BOOL OnChildNotify(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pLResult);
00051 virtual BOOL OnInitDialog();
00052 afx_msg void OnPaint();
00053 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
00054 afx_msg void OnSize(UINT nType, int cx, int cy);
00055 afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp);
00056 afx_msg UINT OnNcHitTest(CPoint point);
00057 afx_msg BOOL OnNcActivate(BOOL bActive);
00058 afx_msg void OnNcPaint();
00059 afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
00060 afx_msg void OnNcLButtonUp(UINT nHitTest, CPoint point);
00061 afx_msg void OnNcLButtonDblClk(UINT nHitTest, CPoint point);
00062 afx_msg void OnNcMouseMove(UINT nHitTest, CPoint point);
00063 afx_msg LONG OnSetText(WPARAM wParam, LPARAM lParam);
00064
00065 };
00066
00067
00068 class CWizardPage : public CPropertyPage
00069 {
00070
00071 public:
00072 CWizardPage(UINT nID = 0);
00073 virtual ~CWizardPage();
00074
00075 DECLARE_DYNCREATE(CWizardPage)
00076
00077
00078 public:
00079 COLORREF m_crWhite;
00080 CBrush m_brWhite;
00081
00082
00083 public:
00084 CWizardSheet* GetSheet();
00085 void SetWizardButtons(DWORD dwFlags);
00086 void StaticReplace(LPCTSTR pszSearch, LPCTSTR pszReplace);
00087
00088
00089 protected:
00090 DECLARE_MESSAGE_MAP()
00091 afx_msg void OnSize(UINT nType, int cx, int cy);
00092 afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
00093
00094 };
00095
00096 #endif