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.

109 lines
2.5 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. /*++
  3. Copyright (C) Microsoft Corporation, 1997 - 1999
  4. Module Name:
  5. AddPolicyWizardPage3.h
  6. Abstract:
  7. Header file for the CNewRAPWiz_AllowDeny class.
  8. This is our handler class for the first CPolicyNode property page.
  9. See AddPolicyWizardPage3.cpp for implementation.
  10. Revision History:
  11. mmaguire 12/15/97 - created
  12. --*/
  13. //////////////////////////////////////////////////////////////////////////////
  14. #if !defined(_NAP_ADD_POLICY_WIZPAGE_3_H_)
  15. #define _NAP_ADD_POLICY_WIZPAGE_3_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_AllowDeny : public CIASWizard97Page<CNewRAPWiz_AllowDeny, IDS_NEWRAPWIZ_ALLOWDENY_TITLE, IDS_NEWRAPWIZ_ALLOWDENY_SUBTITLE>
  33. {
  34. public :
  35. // ISSUE: how is base class initialization going to work with subclassing???
  36. CNewRAPWiz_AllowDeny(
  37. CRapWizardData* pWizData,
  38. LONG_PTR hNotificationHandle
  39. , TCHAR* pTitle = NULL
  40. , BOOL bOwnsNotificationHandle = FALSE
  41. );
  42. ~CNewRAPWiz_AllowDeny();
  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_ALLOWDENY };
  47. BEGIN_MSG_MAP(CNewRAPWiz_AllowDeny)
  48. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  49. COMMAND_ID_HANDLER( IDC_RADIO_GRANT_DIALIN, OnDialinCheck)
  50. COMMAND_ID_HANDLER( IDC_RADIO_DENY_DIALIN, OnDialinCheck)
  51. CHAIN_MSG_MAP(CIASPropertyPageNoHelp<CNewRAPWiz_AllowDeny>)
  52. END_MSG_MAP()
  53. LRESULT OnInitDialog(
  54. UINT uMsg
  55. , WPARAM wParam
  56. , LPARAM lParam
  57. , BOOL& bHandled
  58. );
  59. LRESULT OnDialinCheck(
  60. UINT uMsg
  61. , WPARAM wParam
  62. , HWND hWnd
  63. , BOOL& bHandled
  64. );
  65. BOOL OnWizardNext();
  66. BOOL OnSetActive();
  67. BOOL OnQueryCancel();
  68. BOOL OnWizardBack() { return m_spWizData->GetPrevPageId(((PROPSHEETPAGE*)(*this))->pszTemplate);};
  69. public:
  70. BOOL m_fDialinAllowed;
  71. protected:
  72. HRESULT GetDialinSetting(BOOL &fDialinAllowed);
  73. HRESULT SetDialinSetting(BOOL fDialinAllowed);
  74. // wizard shareed data
  75. CComPtr<CRapWizardData> m_spWizData;
  76. };
  77. #endif // _NAP_ADD_POLICY_WIZPAGE_3_H_