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.

166 lines
2.4 KiB

  1. /*++
  2. Copyright (c) 1994-95 Microsoft Corporation
  3. Module Name:
  4. usrpsht.cpp
  5. Abstract:
  6. User 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 "usrpsht.h"
  16. #ifdef _DEBUG
  17. #undef THIS_FILE
  18. static char BASED_CODE THIS_FILE[] = __FILE__;
  19. #endif
  20. IMPLEMENT_DYNAMIC(CUserPropertySheet, CPropertySheet)
  21. BEGIN_MESSAGE_MAP(CUserPropertySheet, CPropertySheet)
  22. //{{AFX_MSG_MAP(CUserPropertySheet)
  23. ON_COMMAND(ID_HELP, OnHelp)
  24. //}}AFX_MSG_MAP
  25. END_MESSAGE_MAP()
  26. CUserPropertySheet::CUserPropertySheet(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
  27. :CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
  28. /*++
  29. Routine Description:
  30. Constructor for 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. CUserPropertySheet::CUserPropertySheet(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
  42. :CPropertySheet(pszCaption, pParentWnd, iSelectPage)
  43. /*++
  44. Routine Description:
  45. Constructor for 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. CUserPropertySheet::~CUserPropertySheet()
  57. /*++
  58. Routine Description:
  59. Destructor for property sheet.
  60. Arguments:
  61. None.
  62. Return Values:
  63. None.
  64. --*/
  65. {
  66. //
  67. // Nothing to do here.
  68. //
  69. }
  70. void CUserPropertySheet::InitPages(CUser* pUser, BOOL bProductProperties)
  71. /*++
  72. Routine Description:
  73. Initializes property pages.
  74. Arguments:
  75. pUser - user object.
  76. bProductProperties - to recurse or not.
  77. Return Values:
  78. None.
  79. --*/
  80. {
  81. m_psh.dwFlags |= PSH_NOAPPLYNOW;
  82. AddPage(&m_productsPage);
  83. m_productsPage.InitPage(pUser, &m_fUpdateHint, bProductProperties);
  84. }
  85. void CUserPropertySheet::OnHelp()
  86. /*++
  87. Routine Description:
  88. Help button support.
  89. Arguments:
  90. None.
  91. Return Values:
  92. None.
  93. --*/
  94. {
  95. CPropertySheet::OnCommandHelp(0, 0L);
  96. }