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.

165 lines
2.3 KiB

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