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.

88 lines
2.1 KiB

  1. //----------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2001.
  5. //
  6. // File: wiz97pol.cpp
  7. //
  8. // Contents: WiF Policy Snapin
  9. //
  10. //
  11. // History: TaroonM
  12. // 10/30/01
  13. //
  14. //----------------------------------------------------------------------------
  15. #include "stdafx.h"
  16. #include "Wiz97Pol.h"
  17. #ifdef _DEBUG
  18. #define new DEBUG_NEW
  19. #undef THIS_FILE
  20. static char THIS_FILE[] = __FILE__;
  21. #endif
  22. #ifdef WIZ97WIZARDS
  23. /////////////////////////////////////////////////////////////////////////////
  24. //
  25. // Wiz97 dialogs for the Create New Policy wizard
  26. // CWiz97PolicyWelcomePage NOTE: not yet implemeneted
  27. // uses CWiz97GenPage
  28. // CWiz97DefaultResponse
  29. // CWiz97PolicyDonePage
  30. //
  31. /////////////////////////////////////////////////////////////////////////////
  32. //////////////////////////////////////////////////////////////////////
  33. // CWiz97PolicyDonePage Class
  34. //////////////////////////////////////////////////////////////////////
  35. CWiz97PolicyDonePage::CWiz97PolicyDonePage (UINT nIDD, BOOL bWiz97) :
  36. CWiz97BasePage(nIDD, bWiz97, TRUE)
  37. {
  38. //{{AFX_DATA_INIT(CWiz97PolicyDonePage)
  39. m_bCheckProperties = TRUE;
  40. //}}AFX_DATA_INIT
  41. }
  42. CWiz97PolicyDonePage::~CWiz97PolicyDonePage()
  43. {
  44. }
  45. void CWiz97PolicyDonePage::DoDataExchange(CDataExchange* pDX)
  46. {
  47. CWiz97BasePage::DoDataExchange(pDX);
  48. //{{AFX_DATA_MAP(CWiz97PolicyDonePage)
  49. DDX_Check(pDX, IDC_CHECKPROPERTIES, m_bCheckProperties);
  50. //}}AFX_DATA_MAP
  51. }
  52. BEGIN_MESSAGE_MAP(CWiz97PolicyDonePage, CWiz97BasePage)
  53. //{{AFX_MSG_MAP(CWiz97PolicyDonePage)
  54. // NOTE: the ClassWizard will add message map macros here
  55. //}}AFX_MSG_MAP
  56. END_MESSAGE_MAP()
  57. BOOL CWiz97PolicyDonePage::OnWizardFinish ()
  58. {
  59. // check the settings
  60. UpdateData (TRUE);
  61. if (m_bCheckProperties)
  62. {
  63. // Force property page to be displayed, when we get back from the wizard
  64. GetResultObject()->EnablePropertyChangeHook( TRUE );
  65. }
  66. // Base class will let the other pages know the wizard finished by
  67. // calling SetFinished().
  68. return CWiz97BasePage::OnWizardFinish();
  69. }
  70. #endif // #ifdef WIZ97WIZARDS