Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

272 lines
6.5 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1999 **/
  4. /**********************************************************************/
  5. /*
  6. sscopwiz.h
  7. Superscope creation wizard
  8. - Create Superscope Dialog
  9. FILE HISTORY:
  10. */
  11. #ifndef _DHCPHAND_H
  12. #include "dhcphand.h"
  13. #endif
  14. #define SUPERSCOPE_NAME_LENGTH_MAX 255 // Maximum length of a superscope name
  15. /////////////////////////////////////////////////////////////////////////////
  16. //
  17. // CSuperscopeWizName dialog
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20. class CSuperscopeWizName : public CPropertyPageBase
  21. {
  22. DECLARE_DYNCREATE(CSuperscopeWizName)
  23. // Construction
  24. public:
  25. CSuperscopeWizName();
  26. ~CSuperscopeWizName();
  27. // Dialog Data
  28. //{{AFX_DATA(CSuperscopeWizName)
  29. enum { IDD = IDW_SUPERSCOPE_NAME };
  30. CString m_strSuperscopeName;
  31. //}}AFX_DATA
  32. // Overrides
  33. // ClassWizard generate virtual function overrides
  34. //{{AFX_VIRTUAL(CSuperscopeWizName)
  35. public:
  36. virtual LRESULT OnWizardNext();
  37. virtual BOOL OnSetActive();
  38. protected:
  39. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  40. //}}AFX_VIRTUAL
  41. void SetButtons();
  42. // Implementation
  43. protected:
  44. // Generated message map functions
  45. //{{AFX_MSG(CSuperscopeWizName)
  46. virtual BOOL OnInitDialog();
  47. afx_msg void OnChangeEditSuperscopeName();
  48. //}}AFX_MSG
  49. DECLARE_MESSAGE_MAP()
  50. };
  51. /////////////////////////////////////////////////////////////////////////////
  52. //
  53. // CSuperscopeWizError dialog
  54. //
  55. /////////////////////////////////////////////////////////////////////////////
  56. class CSuperscopeWizError : public CPropertyPageBase
  57. {
  58. DECLARE_DYNCREATE(CSuperscopeWizError)
  59. // Construction
  60. public:
  61. CSuperscopeWizError();
  62. ~CSuperscopeWizError();
  63. // Dialog Data
  64. //{{AFX_DATA(CSuperscopeWizError)
  65. enum { IDD = IDW_SUPERSCOPE_ERROR };
  66. // NOTE - ClassWizard will add data members here.
  67. // DO NOT EDIT what you see in these blocks of generated code !
  68. //}}AFX_DATA
  69. // Overrides
  70. // ClassWizard generate virtual function overrides
  71. //{{AFX_VIRTUAL(CSuperscopeWizError)
  72. public:
  73. virtual BOOL OnSetActive();
  74. protected:
  75. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  76. //}}AFX_VIRTUAL
  77. // Implementation
  78. protected:
  79. // Generated message map functions
  80. //{{AFX_MSG(CSuperscopeWizError)
  81. virtual BOOL OnInitDialog();
  82. //}}AFX_MSG
  83. DECLARE_MESSAGE_MAP()
  84. };
  85. /////////////////////////////////////////////////////////////////////////////
  86. //
  87. // CSuperscopeWizSelectScopes dialog
  88. //
  89. /////////////////////////////////////////////////////////////////////////////
  90. class CSuperscopeWizSelectScopes : public CPropertyPageBase
  91. {
  92. DECLARE_DYNCREATE(CSuperscopeWizSelectScopes)
  93. // Construction
  94. public:
  95. CSuperscopeWizSelectScopes();
  96. ~CSuperscopeWizSelectScopes();
  97. // Dialog Data
  98. //{{AFX_DATA(CSuperscopeWizSelectScopes)
  99. enum { IDD = IDW_SUPERSCOPE_SELECT_SCOPES };
  100. CListCtrl m_listboxAvailScopes;
  101. //}}AFX_DATA
  102. // Overrides
  103. // ClassWizard generate virtual function overrides
  104. //{{AFX_VIRTUAL(CSuperscopeWizSelectScopes)
  105. public:
  106. virtual LRESULT OnWizardNext();
  107. virtual LRESULT OnWizardBack();
  108. virtual BOOL OnSetActive();
  109. protected:
  110. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  111. //}}AFX_VIRTUAL
  112. void SetButtons();
  113. // Implementation
  114. protected:
  115. // Generated message map functions
  116. //{{AFX_MSG(CSuperscopeWizSelectScopes)
  117. virtual BOOL OnInitDialog();
  118. afx_msg void OnSelchangeListAvailableScopes();
  119. afx_msg void OnItemchangedListAvailableScopes(NMHDR* pNMHDR, LRESULT* pResult);
  120. //}}AFX_MSG
  121. DECLARE_MESSAGE_MAP()
  122. };
  123. /////////////////////////////////////////////////////////////////////////////
  124. //
  125. // CSuperscopeWizConfirm dialog
  126. //
  127. /////////////////////////////////////////////////////////////////////////////
  128. class CSuperscopeWizConfirm : public CPropertyPageBase
  129. {
  130. DECLARE_DYNCREATE(CSuperscopeWizConfirm)
  131. // Construction
  132. public:
  133. CSuperscopeWizConfirm();
  134. ~CSuperscopeWizConfirm();
  135. // Dialog Data
  136. //{{AFX_DATA(CSuperscopeWizConfirm)
  137. enum { IDD = IDW_SUPERSCOPE_CONFIRM };
  138. CStatic m_staticTitle;
  139. CListBox m_listboxSelectedScopes;
  140. CEdit m_editName;
  141. //}}AFX_DATA
  142. CFont m_fontBig;
  143. // Overrides
  144. // ClassWizard generate virtual function overrides
  145. //{{AFX_VIRTUAL(CSuperscopeWizConfirm)
  146. public:
  147. virtual BOOL OnWizardFinish();
  148. virtual BOOL OnSetActive();
  149. protected:
  150. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  151. //}}AFX_VIRTUAL
  152. // Implementation
  153. protected:
  154. // Generated message map functions
  155. //{{AFX_MSG(CSuperscopeWizConfirm)
  156. virtual BOOL OnInitDialog();
  157. //}}AFX_MSG
  158. DECLARE_MESSAGE_MAP()
  159. };
  160. /////////////////////////////////////////////////////////////////////////////
  161. // CSuperscopeWizWelcome dialog
  162. class CSuperscopeWizWelcome : public CPropertyPageBase
  163. {
  164. DECLARE_DYNCREATE(CSuperscopeWizWelcome)
  165. // Construction
  166. public:
  167. CSuperscopeWizWelcome();
  168. ~CSuperscopeWizWelcome();
  169. // Dialog Data
  170. //{{AFX_DATA(CSuperscopeWizWelcome)
  171. enum { IDD = IDW_SUPERSCOPE_WELCOME };
  172. CStatic m_staticTitle;
  173. //}}AFX_DATA
  174. CFont m_fontBig;
  175. // Overrides
  176. // ClassWizard generate virtual function overrides
  177. //{{AFX_VIRTUAL(CSuperscopeWizWelcome)
  178. public:
  179. virtual BOOL OnSetActive();
  180. protected:
  181. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  182. //}}AFX_VIRTUAL
  183. // Implementation
  184. protected:
  185. // Generated message map functions
  186. //{{AFX_MSG(CSuperscopeWizWelcome)
  187. virtual BOOL OnInitDialog();
  188. //}}AFX_MSG
  189. DECLARE_MESSAGE_MAP()
  190. };
  191. ///////////////////////////////////////////////////////////////////////////////
  192. //
  193. // CSuperscopeWiz
  194. // page holder to contain Superscope wizard pages
  195. //
  196. /////////////////////////////////////////////////////////////////////////////
  197. class CSuperscopeWiz : public CPropertyPageHolderBase
  198. {
  199. friend class CSuperscopeWizName;
  200. friend class CSuperscopeWizError;
  201. friend class CSuperscopeWizSelectScopes;
  202. friend class CSuperscopeWizConfirm;
  203. friend class CSuperscopeWizWelcome;
  204. public:
  205. CSuperscopeWiz (ITFSNode * pNode,
  206. IComponentData * pComponentData,
  207. ITFSComponentData * pTFSCompData,
  208. LPCTSTR pszSheetName);
  209. virtual ~CSuperscopeWiz();
  210. HRESULT FillAvailableScopes(CListCtrl & listboxScopes);
  211. BOOL DoesSuperscopeExist(LPCTSTR pSuperscopeName);
  212. HRESULT GetScopeInfo();
  213. virtual DWORD OnFinish();
  214. private:
  215. CSuperscopeWizWelcome m_pageWelcome;
  216. CSuperscopeWizName m_pageName;
  217. CSuperscopeWizError m_pageError;
  218. CSuperscopeWizSelectScopes m_pageSelectScopes;
  219. CSuperscopeWizConfirm m_pageConfirm;
  220. CDHCPQueryObj * m_pQueryObject;
  221. SPITFSComponentData m_spTFSCompData;
  222. };