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.

196 lines
3.5 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1996 - 1998
  3. All rights reserved.
  4. Module Name:
  5. propmgr.hxx
  6. Abstract:
  7. Property sheet manager header.
  8. Author:
  9. Steve Kiraly (SteveKi) 02-Feb-1996
  10. Revision History:
  11. --*/
  12. #ifndef _PROPMGR_HXX
  13. #define _PROPMGR_HXX
  14. /********************************************************************
  15. Common UI entry points.
  16. ********************************************************************/
  17. #define COMMON_UI "compstui.dll"
  18. #ifdef _UNICODE
  19. #define COMMON_PROPERTY_SHEETUI "CommonPropertySheetUIW"
  20. #else
  21. #define COMMON_PROPERTY_SHEETUI "CommonPropertySheetUIA"
  22. #endif
  23. /********************************************************************
  24. Printer Property Sheet Manager
  25. ********************************************************************/
  26. class TPropertySheetManager {
  27. SIGNATURE( 'psmg' )
  28. SAFE_NEW
  29. public:
  30. TPropertySheetManager::
  31. TPropertySheetManager(
  32. VOID
  33. );
  34. virtual
  35. TPropertySheetManager::
  36. ~TPropertySheetManager(
  37. VOID
  38. );
  39. BOOL
  40. TPropertySheetManager::
  41. bValid(
  42. VOID
  43. );
  44. BOOL
  45. TPropertySheetManager::
  46. bDisplayPages(
  47. IN HWND hWnd,
  48. OUT LONG *pResult = NULL
  49. );
  50. static
  51. BOOL
  52. TPropertySheetManager::
  53. bValidCompstuiHandle(
  54. IN LONG_PTR hHandle
  55. );
  56. static
  57. LPTSTR
  58. TPropertySheetManager::
  59. pszLocalPrinterName(
  60. IN LPCTSTR pszPrinterName,
  61. OUT LPTSTR pszPrinterBuffer
  62. );
  63. protected:
  64. virtual
  65. BOOL
  66. TPropertySheetManager::
  67. bBuildPages(
  68. IN PPROPSHEETUI_INFO pCPSUIInfo
  69. ) = 0;
  70. virtual
  71. BOOL
  72. TPropertySheetManager::
  73. bSetHeader(
  74. IN PPROPSHEETUI_INFO pCPSUIInfo,
  75. IN PPROPSHEETUI_INFO_HEADER pPSUInfoHeader
  76. ) = 0;
  77. virtual
  78. BOOL
  79. TPropertySheetManager::
  80. bDestroyPages(
  81. IN PPROPSHEETUI_INFO pPSUIInfo
  82. );
  83. virtual
  84. BOOL
  85. TPropertySheetManager::
  86. bSaveResult(
  87. IN PPROPSHEETUI_INFO pCPSUIInfo,
  88. IN PSETRESULT_INFO pSetResultInfo
  89. );
  90. virtual
  91. DWORD
  92. TPropertySheetManager::
  93. dwGetIcon(
  94. IN PPROPSHEETUI_INFO pCPSUIInfo
  95. );
  96. PROPSHEETUI_INFO _CPSUIInfo;
  97. private:
  98. LONG
  99. TPropertySheetManager::
  100. lReasonInit(
  101. IN PPROPSHEETUI_INFO pCPSUIInfo,
  102. IN LPARAM lParam
  103. );
  104. LONG
  105. TPropertySheetManager::
  106. lReasonGetInfoHeader(
  107. IN PPROPSHEETUI_INFO pCPSUIInfo,
  108. IN PPROPSHEETUI_INFO_HEADER pPSUInfoHeader
  109. );
  110. LONG
  111. TPropertySheetManager::
  112. lReasonSetResult(
  113. IN PPROPSHEETUI_INFO pCPSUIInfo,
  114. IN PSETRESULT_INFO pSetResultInfo
  115. );
  116. LONG
  117. TPropertySheetManager::
  118. lReasonDestroy(
  119. IN PPROPSHEETUI_INFO pCPSUIInfo
  120. );
  121. LONG
  122. TPropertySheetManager::
  123. lReasonGetIcon(
  124. IN PPROPSHEETUI_INFO pCPSUIInfo
  125. );
  126. static
  127. LONG
  128. CALLBACK
  129. TPropertySheetManager::
  130. CPSUIFunc(
  131. PPROPSHEETUI_INFO pPSUIInfo,
  132. LPARAM lParam
  133. );
  134. //
  135. // Prevent copying.
  136. //
  137. TPropertySheetManager::
  138. TPropertySheetManager(
  139. const TPropertySheetManager &
  140. );
  141. //
  142. // Prevent assignment.
  143. //
  144. TPropertySheetManager &
  145. TPropertySheetManager::
  146. operator =(
  147. const TPropertySheetManager &
  148. );
  149. BOOL _bValid;
  150. HWND _hWnd;
  151. };
  152. #endif // end _PROPMGR_HXX