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.

176 lines
2.5 KiB

  1. /*++
  2. Copyright (c) 1994-95 Microsoft Corporation
  3. Module Name:
  4. srvpsht.cpp
  5. Abstract:
  6. Server property sheet implementation.
  7. Author:
  8. Don Ryan (donryan) 17-Jan-1995
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. Jeff Parham (jeffparh) 16-Jan-1996
  13. o Added definition for DoModal() to facilitate in keeping the
  14. replication property page from saving whenever it lost focus.
  15. Jeff Parham (jeffparh) 28-Feb-1996
  16. o Removed DoModal() override as it is no longer needed (and in
  17. fact breaks) under MFC4.
  18. --*/
  19. #include "stdafx.h"
  20. #include "llsmgr.h"
  21. #include "srvpsht.h"
  22. #ifdef _DEBUG
  23. #undef THIS_FILE
  24. static char BASED_CODE THIS_FILE[] = __FILE__;
  25. #endif
  26. IMPLEMENT_DYNAMIC(CServerPropertySheet, CPropertySheet)
  27. BEGIN_MESSAGE_MAP(CServerPropertySheet, CPropertySheet)
  28. //{{AFX_MSG_MAP(CServerPropertySheet)
  29. ON_COMMAND(ID_HELP, OnHelp)
  30. //}}AFX_MSG_MAP
  31. END_MESSAGE_MAP()
  32. CServerPropertySheet::CServerPropertySheet(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
  33. :CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
  34. /*++
  35. Routine Description:
  36. Constructor for property sheet.
  37. Arguments:
  38. nIDCaption - window caption.
  39. pParentWnd - parent window handle.
  40. iSelectPage - initial page selected.
  41. Return Values:
  42. None.
  43. --*/
  44. {
  45. m_fUpdateHint = UPDATE_INFO_NONE;
  46. }
  47. CServerPropertySheet::CServerPropertySheet(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
  48. :CPropertySheet(pszCaption, pParentWnd, iSelectPage)
  49. /*++
  50. Routine Description:
  51. Constructor for property sheet.
  52. Arguments:
  53. pszCaption - window caption.
  54. pParentWnd - parent window handle.
  55. iSelectPage - initial page selected.
  56. Return Values:
  57. None.
  58. --*/
  59. {
  60. m_fUpdateHint = UPDATE_INFO_NONE;
  61. }
  62. CServerPropertySheet::~CServerPropertySheet()
  63. /*++
  64. Routine Description:
  65. Destructor for property sheet.
  66. Arguments:
  67. None.
  68. Return Values:
  69. None.
  70. --*/
  71. {
  72. //
  73. // Nothing to do here.
  74. //
  75. }
  76. void CServerPropertySheet::InitPages(CServer* pServer)
  77. /*++
  78. Routine Description:
  79. Initializes property pages.
  80. Arguments:
  81. pServer - server object.
  82. Return Values:
  83. None.
  84. --*/
  85. {
  86. m_psh.dwFlags |= PSH_NOAPPLYNOW;
  87. AddPage(&m_productPage);
  88. m_productPage.InitPage(pServer, &m_fUpdateHint);
  89. AddPage(&m_replPage);
  90. m_replPage.InitPage(pServer); // no update needed...
  91. }
  92. void CServerPropertySheet::OnHelp()
  93. /*++
  94. Routine Description:
  95. Help button support.
  96. Arguments:
  97. None.
  98. Return Values:
  99. None.
  100. --*/
  101. {
  102. CPropertySheet::OnCommandHelp(0, 0L);
  103. }