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.

122 lines
2.6 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1994 - 1996.
  5. //
  6. // File: wizpage.cxx
  7. //
  8. // Contents: Implementation of wizard page class
  9. //
  10. // History: 4-30-1997 DavidMun Created
  11. //
  12. //---------------------------------------------------------------------------
  13. #include "precomp.h"
  14. //+--------------------------------------------------------------------------
  15. //
  16. // Member: CWizPage::~CWizPage
  17. //
  18. // History: 31-Mar-1998 SusiA
  19. //
  20. //---------------------------------------------------------------------------
  21. CWizPage::~CWizPage()
  22. {
  23. if (m_pISyncSched)
  24. m_pISyncSched->Release();
  25. }
  26. //+--------------------------------------------------------------------------
  27. //
  28. // Member: CWizPage::_OnNotify
  29. //
  30. // Synopsis: Aggregate the CPropPage WM_NOTIFY handler to provide
  31. // wizard-specific dispatching.
  32. //
  33. // Arguments: standard windows
  34. //
  35. // Returns: standard windows
  36. //
  37. // History: 5-20-1997 DavidMun Created
  38. //
  39. //---------------------------------------------------------------------------
  40. LRESULT
  41. CWizPage::_OnNotify(
  42. UINT uMessage,
  43. UINT uParam,
  44. LPARAM lParam)
  45. {
  46. // TRACE_METHOD(CWizPage, _OnNotify);
  47. LPNMHDR pnmhdr = (LPNMHDR) lParam;
  48. switch (pnmhdr->code)
  49. {
  50. //
  51. // Delegate to base class for notification processing it provides
  52. // which we don't need to override.
  53. //
  54. //
  55. // Support notifications unique to wizard pages
  56. //
  57. case PSN_WIZBACK:
  58. return _OnWizBack();
  59. case PSN_WIZNEXT:
  60. return _OnWizNext();
  61. }
  62. return TRUE;
  63. }
  64. //+--------------------------------------------------------------------------
  65. //
  66. // Member: CWizPage::_OnWizBack
  67. //
  68. // Synopsis: Default handling of PSN_WIZBACK
  69. //
  70. // History: 5-20-1997 DavidMun Created
  71. //
  72. //---------------------------------------------------------------------------
  73. LRESULT
  74. CWizPage::_OnWizBack()
  75. {
  76. SetWindowLongPtr(m_hwnd, DWLP_MSGRESULT, 0);
  77. return 0;
  78. }
  79. //+--------------------------------------------------------------------------
  80. //
  81. // Member: CWizPage::_OnWizNext
  82. //
  83. // Synopsis: Default handling of PSN_WIZNEXT
  84. //
  85. // History: 5-20-1997 DavidMun Created
  86. //
  87. //---------------------------------------------------------------------------
  88. LRESULT
  89. CWizPage::_OnWizNext()
  90. {
  91. SetWindowLongPtr(m_hwnd, DWLP_MSGRESULT, 0);
  92. return 0;
  93. }