Leaked source code of windows server 2003
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.

105 lines
2.7 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. /*++
  3. Copyright (C) Microsoft Corporation
  4. Module Name:
  5. AddPolicyWizardPage4.h
  6. Abstract:
  7. Header file for the CNewRAPWiz_EditProfile class.
  8. This is our handler class for the first CPolicyNode property page.
  9. See AddPolicyWizardPage4.cpp for implementation.
  10. Revision History:
  11. mmaguire 12/15/97 - created
  12. --*/
  13. //////////////////////////////////////////////////////////////////////////////
  14. #if !defined(_NAP_ADD_POLICY_WIZPAGE_4_H_)
  15. #define _NAP_ADD_POLICY_WIZPAGE_4_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 "Condition.h"
  28. #include "IASAttrList.h"
  29. #include "atltmp.h"
  30. #include "rapwiz.h"
  31. //
  32. // END INCLUDES
  33. //////////////////////////////////////////////////////////////////////////////
  34. class CNewRAPWiz_EditProfile : public CIASWizard97Page<CNewRAPWiz_EditProfile, IDS_NEWRAPWIZ_EDITPROFILE_TITLE, IDS_NEWRAPWIZ_EDITPROFILE_SUBTITLE>
  35. {
  36. public :
  37. // ISSUE: how is base class initialization going to work with subclassing???
  38. CNewRAPWiz_EditProfile(
  39. CRapWizardData* pWizData,
  40. LONG_PTR hNotificationHandle
  41. , CIASAttrList *pIASAttrList
  42. , TCHAR* pTitle
  43. , BOOL bOwnsNotificationHandle
  44. , bool isWin2k
  45. );
  46. ~CNewRAPWiz_EditProfile();
  47. // This is the ID of the dialog resource we want for this class.
  48. // An enum is used here because the correct value of
  49. // IDD must be initialized before the base class's constructor is called
  50. enum { IDD = IDD_NEWRAPWIZ_EDITPROFILE };
  51. BEGIN_MSG_MAP(CNewRAPWiz_EditProfile)
  52. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  53. COMMAND_ID_HANDLER( IDC_BUTTON_EDITPROFILE, OnEditProfile )
  54. CHAIN_MSG_MAP(CIASPropertyPageNoHelp<CNewRAPWiz_EditProfile>)
  55. END_MSG_MAP()
  56. LRESULT OnInitDialog(
  57. UINT uMsg
  58. , WPARAM wParam
  59. , LPARAM lParam
  60. , BOOL& bHandled
  61. );
  62. LRESULT OnEditProfile(
  63. UINT uMsg
  64. , WPARAM wParam
  65. , HWND hWnd
  66. , BOOL& bHandled
  67. );
  68. BOOL OnWizardNext();
  69. BOOL OnSetActive();
  70. BOOL OnQueryCancel();
  71. BOOL OnWizardBack() { return m_spWizData->GetPrevPageId(((PROPSHEETPAGE*)(*this))->pszTemplate);};
  72. protected:
  73. CIASAttrList *m_pIASAttrList; // condition attribute list
  74. // wizard shareed data
  75. CComPtr<CRapWizardData> m_spWizData;
  76. bool m_isWin2k;
  77. };
  78. #endif // _NAP_ADD_POLICY_WIZPAGE_4_H_