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.

172 lines
2.6 KiB

  1. /*++
  2. Copyright (c) 1994-95 Microsoft Corporation
  3. Module Name:
  4. prdpsht.cpp
  5. Abstract:
  6. Product property sheet implementation.
  7. Author:
  8. Don Ryan (donryan) 05-Feb-1995
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. --*/
  13. #include "stdafx.h"
  14. #include "llsmgr.h"
  15. #include "prdpsht.h"
  16. #ifdef _DEBUG
  17. #undef THIS_FILE
  18. static char BASED_CODE THIS_FILE[] = __FILE__;
  19. #endif
  20. IMPLEMENT_DYNAMIC(CProductPropertySheet, CPropertySheet)
  21. BEGIN_MESSAGE_MAP(CProductPropertySheet, CPropertySheet)
  22. //{{AFX_MSG_MAP(CProductPropertySheet)
  23. ON_COMMAND(ID_HELP, OnHelp)
  24. //}}AFX_MSG_MAP
  25. END_MESSAGE_MAP()
  26. CProductPropertySheet::CProductPropertySheet(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
  27. :CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
  28. /*++
  29. Routine Description:
  30. Constructor for product property sheet.
  31. Arguments:
  32. nIDCaption - window caption.
  33. pParentWnd - parent window handle.
  34. iSelectPage - initial page selected.
  35. Return Values:
  36. None.
  37. --*/
  38. {
  39. m_fUpdateHint = UPDATE_INFO_NONE;
  40. }
  41. CProductPropertySheet::CProductPropertySheet(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
  42. :CPropertySheet(pszCaption, pParentWnd, iSelectPage)
  43. /*++
  44. Routine Description:
  45. Constructor for product property sheet.
  46. Arguments:
  47. pszCaption - window caption.
  48. pParentWnd - parent window handle.
  49. iSelectPage - initial page selected.
  50. Return Values:
  51. None.
  52. --*/
  53. {
  54. m_fUpdateHint = UPDATE_INFO_NONE;
  55. }
  56. CProductPropertySheet::~CProductPropertySheet()
  57. /*++
  58. Routine Description:
  59. Destructor for product property sheet.
  60. Arguments:
  61. None.
  62. Return Values:
  63. None.
  64. --*/
  65. {
  66. //
  67. // Nothing to do here.
  68. //
  69. }
  70. void CProductPropertySheet::InitPages(CProduct* pProduct, BOOL bUserProperties)
  71. /*++
  72. Routine Description:
  73. Initializes property pages.
  74. Arguments:
  75. pProduct - product object.
  76. bUserProperties - to recurse or not.
  77. Return Values:
  78. None.
  79. --*/
  80. {
  81. m_psh.dwFlags |= PSH_NOAPPLYNOW;
  82. AddPage(&m_usersPage);
  83. m_usersPage.InitPage(pProduct, &m_fUpdateHint, bUserProperties);
  84. AddPage(&m_licensesPage);
  85. m_licensesPage.InitPage(pProduct, &m_fUpdateHint);
  86. AddPage(&m_serversPage);
  87. m_serversPage.InitPage(pProduct, &m_fUpdateHint);
  88. }
  89. void CProductPropertySheet::OnHelp()
  90. /*++
  91. Routine Description:
  92. Help button support.
  93. Arguments:
  94. None.
  95. Return Values:
  96. None.
  97. --*/
  98. {
  99. CPropertySheet::OnCommandHelp(0, 0L);
  100. }