WizardPages.h 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. #if !defined(AFX_WIZARDPAGES_H__0A0FEEEB_C884_4EB9_85E6_843E2DEB225E__INCLUDED_)
  2. #define AFX_WIZARDPAGES_H__0A0FEEEB_C884_4EB9_85E6_843E2DEB225E__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // WizardPages.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CWizardPage1 dialog
  10. class CWizardPage1 : public CPropertyPageEx
  11. {
  12. DECLARE_DYNCREATE(CWizardPage1)
  13. // Construction
  14. public:
  15. CWizardPage1();
  16. ~CWizardPage1();
  17. // Dialog Data
  18. //{{AFX_DATA(CWizardPage1)
  19. enum { IDD = IDD_WIZARD_PAGE1 };
  20. CString m_strAccountName;
  21. //}}AFX_DATA
  22. // Overrides
  23. // ClassWizard generate virtual function overrides
  24. //{{AFX_VIRTUAL(CWizardPage1)
  25. public:
  26. virtual BOOL OnSetActive();
  27. virtual LRESULT OnWizardNext();
  28. protected:
  29. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  30. //}}AFX_VIRTUAL
  31. // Implementation
  32. protected:
  33. // Generated message map functions
  34. //{{AFX_MSG(CWizardPage1)
  35. //}}AFX_MSG
  36. DECLARE_MESSAGE_MAP()
  37. };
  38. /////////////////////////////////////////////////////////////////////////////
  39. // CWizardPage2 dialog
  40. class CWizardPage2 : public CPropertyPageEx
  41. {
  42. DECLARE_DYNCREATE(CWizardPage2)
  43. // Construction
  44. public:
  45. CWizardPage2();
  46. ~CWizardPage2();
  47. // Dialog Data
  48. //{{AFX_DATA(CWizardPage2)
  49. enum { IDD = IDD_WIZARD_PAGE2 };
  50. CString m_strPassword;
  51. //}}AFX_DATA
  52. // Overrides
  53. // ClassWizard generate virtual function overrides
  54. //{{AFX_VIRTUAL(CWizardPage2)
  55. public:
  56. virtual BOOL OnSetActive();
  57. virtual LRESULT OnWizardNext();
  58. protected:
  59. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  60. //}}AFX_VIRTUAL
  61. // Implementation
  62. protected:
  63. // Generated message map functions
  64. //{{AFX_MSG(CWizardPage2)
  65. // NOTE: the ClassWizard will add member functions here
  66. //}}AFX_MSG
  67. DECLARE_MESSAGE_MAP()
  68. };
  69. /////////////////////////////////////////////////////////////////////////////
  70. // CWizardPage3 dialog
  71. class CWizardPage3 : public CPropertyPageEx
  72. {
  73. DECLARE_DYNCREATE(CWizardPage3)
  74. // Construction
  75. public:
  76. CWizardPage3();
  77. ~CWizardPage3();
  78. // Dialog Data
  79. //{{AFX_DATA(CWizardPage3)
  80. enum { IDD = IDD_WIZARD_PAGE3 };
  81. CString m_strHomeDirectory;
  82. //}}AFX_DATA
  83. // Overrides
  84. // ClassWizard generate virtual function overrides
  85. //{{AFX_VIRTUAL(CWizardPage3)
  86. public:
  87. virtual BOOL OnSetActive();
  88. virtual LRESULT OnWizardNext();
  89. protected:
  90. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  91. //}}AFX_VIRTUAL
  92. // Implementation
  93. protected:
  94. // Generated message map functions
  95. //{{AFX_MSG(CWizardPage3)
  96. afx_msg void OnBrowse();
  97. //}}AFX_MSG
  98. DECLARE_MESSAGE_MAP()
  99. };
  100. /////////////////////////////////////////////////////////////////////////////
  101. // CWizardPage4 dialog
  102. class CWizardPage4 : public CPropertyPageEx
  103. {
  104. DECLARE_DYNCREATE(CWizardPage4)
  105. // Construction
  106. public:
  107. CWizardPage4();
  108. ~CWizardPage4();
  109. // Dialog Data
  110. //{{AFX_DATA(CWizardPage4)
  111. enum { IDD = IDD_WIZARD_PAGE4 };
  112. BOOL m_bAllowCreateDirectory;
  113. BOOL m_bAllowDelete;
  114. BOOL m_bAllowDownload;
  115. BOOL m_bAllowRename;
  116. BOOL m_bAllowUpload;
  117. //}}AFX_DATA
  118. // Overrides
  119. // ClassWizard generate virtual function overrides
  120. //{{AFX_VIRTUAL(CWizardPage4)
  121. public:
  122. virtual BOOL OnSetActive();
  123. protected:
  124. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  125. //}}AFX_VIRTUAL
  126. // Implementation
  127. protected:
  128. // Generated message map functions
  129. //{{AFX_MSG(CWizardPage4)
  130. virtual BOOL OnInitDialog();
  131. //}}AFX_MSG
  132. DECLARE_MESSAGE_MAP()
  133. };
  134. /////////////////////////////////////////////////////////////////////////////
  135. // CWizardFinish dialog
  136. class CWizardFinish : public CPropertyPageEx
  137. {
  138. DECLARE_DYNCREATE(CWizardFinish)
  139. // Construction
  140. public:
  141. CWizardFinish();
  142. ~CWizardFinish();
  143. // Dialog Data
  144. //{{AFX_DATA(CWizardFinish)
  145. enum { IDD = IDD_WIZARD_FINISH };
  146. //}}AFX_DATA
  147. // Overrides
  148. // ClassWizard generate virtual function overrides
  149. //{{AFX_VIRTUAL(CWizardFinish)
  150. public:
  151. virtual BOOL OnSetActive();
  152. protected:
  153. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  154. //}}AFX_VIRTUAL
  155. // Implementation
  156. protected:
  157. // Generated message map functions
  158. //{{AFX_MSG(CWizardFinish)
  159. afx_msg void OnConnectnow();
  160. //}}AFX_MSG
  161. DECLARE_MESSAGE_MAP()
  162. };
  163. class CWizardSheet : public CPropertySheetEx
  164. {
  165. DECLARE_DYNAMIC(CWizardSheet)
  166. // Construction
  167. public:
  168. CWizardSheet(UINT nIDCaption, CWnd* pParentWnd = NULL,
  169. UINT iSelectPage = 0, HBITMAP hbmWatermark = NULL,
  170. HPALETTE hpalWatermark = NULL, HBITMAP hbmHeader = NULL);
  171. CWizardSheet(LPCTSTR pszCaption, CWnd* pParentWnd = NULL,
  172. UINT iSelectPage = 0, HBITMAP hbmWatermark = NULL,
  173. HPALETTE hpalWatermark = NULL, HBITMAP hbmHeader = NULL);
  174. /* CWizardSheet(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
  175. CWizardSheet(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
  176. */
  177. // Attributes
  178. public:
  179. void InitPages();
  180. // Operations
  181. public:
  182. CWizardPage1 m_Page1;
  183. CWizardPage2 m_Page2;
  184. CWizardPage3 m_Page3;
  185. CWizardPage4 m_Page4;
  186. CWizardFinish m_PageFinish;
  187. // Overrides
  188. // ClassWizard generated virtual function overrides
  189. //{{AFX_VIRTUAL(CWizardSheet)
  190. //}}AFX_VIRTUAL
  191. // Implementation
  192. public:
  193. virtual ~CWizardSheet();
  194. // Generated message map functions
  195. protected:
  196. //{{AFX_MSG(CWizardSheet)
  197. //}}AFX_MSG
  198. DECLARE_MESSAGE_MAP()
  199. };
  200. //{{AFX_INSERT_LOCATION}}
  201. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  202. #endif // !defined(AFX_WIZARDPAGES_H__0A0FEEEB_C884_4EB9_85E6_843E2DEB225E__INCLUDED_)