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.

111 lines
2.5 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. /*++
  3. Copyright (C) Microsoft Corporation, 1997 - 1999
  4. Module Name:
  5. AddPolicyWizardPage1.h
  6. Abstract:
  7. Header file for the CNewRAPWiz_Name class.
  8. This is our handler class for the first CPolicyNode property page.
  9. See AddPolicyWizardPage1.cpp for implementation.
  10. Revision History:
  11. mmaguire 12/15/97 - created
  12. --*/
  13. //////////////////////////////////////////////////////////////////////////////
  14. #if !defined(_NAP_ADD_POLICY_WIZPAGE_1_H_)
  15. #define _NAP_ADD_POLICY_WIZPAGE_1_H_
  16. //////////////////////////////////////////////////////////////////////////////
  17. // BEGIN INCLUDES
  18. //
  19. // where we can find what this class derives from:
  20. //
  21. #include "PropertyPage.h"
  22. //
  23. //
  24. // where we can find what this class has or uses:
  25. //
  26. class CPolicyNode;
  27. #include "atltmp.h"
  28. #include "rapwiz.h"
  29. //
  30. // END INCLUDES
  31. //////////////////////////////////////////////////////////////////////////////
  32. class CNewRAPWiz_Name : public CIASWizard97Page<CNewRAPWiz_Name, IDS_NEWRAPWIZ_NAME_TITLE, IDS_NEWRAPWIZ_NAME_SUBTITLE>
  33. {
  34. public :
  35. // ISSUE: how is base class initialization going to work with subclassing???
  36. CNewRAPWiz_Name(
  37. CRapWizardData* pWizData,
  38. LONG_PTR hNotificationHandle
  39. , TCHAR* pTitle = NULL
  40. , BOOL bOwnsNotificationHandle = TRUE
  41. );
  42. ~CNewRAPWiz_Name();
  43. // This is the ID of the dialog resource we want for this class.
  44. // An enum is used here because the correct value of
  45. // IDD must be initialized before the base class's constructor is called
  46. enum { IDD = IDD_NEWRAPWIZ_NAME };
  47. BEGIN_MSG_MAP(CNewRAPWiz_Name)
  48. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  49. COMMAND_ID_HANDLER(IDC_NEWRAPWIZ_NAME_POLICYNAME, OnPolicyNameEdit)
  50. COMMAND_ID_HANDLER(IDC_NEWRAPWIZ_NAME_SCENARIO, OnPath)
  51. COMMAND_ID_HANDLER(IDC_NEWRAPWIZ_NAME_MANUAL, OnPath)
  52. CHAIN_MSG_MAP(CIASPropertyPageNoHelp<CNewRAPWiz_Name>)
  53. END_MSG_MAP()
  54. LRESULT OnInitDialog(
  55. UINT uMsg
  56. , WPARAM wParam
  57. , LPARAM lParam
  58. , BOOL& bHandled
  59. );
  60. LRESULT OnPolicyNameEdit(
  61. UINT uMsg
  62. , WPARAM wParam
  63. , HWND hWnd
  64. , BOOL& bHandled
  65. );
  66. LRESULT OnPath(
  67. UINT uMsg
  68. , WPARAM wParam
  69. , HWND hWnd
  70. , BOOL& bHandled
  71. );
  72. BOOL OnWizardNext();
  73. BOOL OnSetActive();
  74. BOOL OnQueryCancel();
  75. BOOL OnWizardBack() { return m_spWizData->GetPrevPageId(((PROPSHEETPAGE*)(*this))->pszTemplate);};
  76. public:
  77. BOOL ValidPolicyName(LPCTSTR pszName);
  78. protected:
  79. // wizard shareed data
  80. CComPtr<CRapWizardData> m_spWizData;
  81. };
  82. #endif // _NAP_ADD_POLICY_WIZPAGE_1_H_