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.

143 lines
1.7 KiB

  1. /*
  2. * Copyright (c) 1998 Microsoft Corporation
  3. *
  4. * Module Name:
  5. *
  6. * ocpage.h
  7. *
  8. * Abstract:
  9. *
  10. * This file defines an OC Manager Wizard Page base class.
  11. *
  12. * Author:
  13. *
  14. * Breen Hagan (BreenH) Oct-02-98
  15. *
  16. * Environment:
  17. *
  18. * User Mode
  19. */
  20. #ifndef _LSOC_OCPAGE_H_
  21. #define _LSOC_OCPAGE_H_
  22. class OCPage : public PROPSHEETPAGE
  23. {
  24. public:
  25. //
  26. // Constructor and destructor.
  27. //
  28. OCPage(
  29. );
  30. virtual
  31. ~OCPage(
  32. );
  33. //
  34. // Standard functions.
  35. //
  36. HWND
  37. GetDlgWnd(
  38. )
  39. {
  40. return m_hDlgWnd;
  41. }
  42. BOOL
  43. Initialize(
  44. );
  45. BOOL
  46. OnNotify(
  47. HWND hWndDlg,
  48. WPARAM wParam,
  49. LPARAM lParam
  50. );
  51. //
  52. // Virtual functions.
  53. //
  54. virtual BOOL
  55. ApplyChanges(
  56. );
  57. virtual BOOL
  58. CanShow(
  59. ) = 0;
  60. virtual UINT
  61. GetPageID(
  62. ) = 0;
  63. virtual UINT
  64. GetHeaderTitleResource(
  65. ) = 0;
  66. virtual UINT
  67. GetHeaderSubTitleResource(
  68. ) = 0;
  69. virtual BOOL
  70. OnCommand(
  71. HWND hWndDlg,
  72. WPARAM wParam,
  73. LPARAM lParam
  74. );
  75. virtual BOOL
  76. OnInitDialog(
  77. HWND hWndDlg,
  78. WPARAM wParam,
  79. LPARAM lParam
  80. );
  81. //
  82. // Callback functions.
  83. //
  84. static INT_PTR CALLBACK
  85. PropertyPageDlgProc(
  86. HWND hWndDlg,
  87. UINT uMsg,
  88. WPARAM wParam,
  89. LPARAM lParam
  90. );
  91. protected:
  92. HWND m_hDlgWnd;
  93. DWORD
  94. DisplayMessageBox(
  95. UINT resText,
  96. UINT resTitle,
  97. UINT uType,
  98. int *mbRetVal
  99. );
  100. VOID
  101. SetDlgWnd(
  102. HWND hwndDlg
  103. )
  104. {
  105. m_hDlgWnd = hwndDlg;
  106. }
  107. };
  108. DWORD
  109. DisplayMessageBox(
  110. HWND hWnd,
  111. UINT resText,
  112. UINT resTitle,
  113. UINT uType,
  114. int *mbRetVal
  115. );
  116. #endif // _LSOC_OCPAGE_H_