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.

58 lines
1.7 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: S R V R D L G . H
  7. //
  8. // Contents: Dialog box handling for the Server object.
  9. //
  10. // Notes:
  11. //
  12. // Author: danielwe 5 Mar 1997
  13. //
  14. //----------------------------------------------------------------------------
  15. #ifndef _SRVRDLG_H
  16. #define _SRVRDLG_H
  17. #pragma once
  18. #include "srvrobj.h"
  19. //
  20. // Server Configuration Dialog
  21. //
  22. class CServerConfigDlg: public CPropSheetPage
  23. {
  24. public:
  25. BEGIN_MSG_MAP(CServerConfigDlg)
  26. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  27. MESSAGE_HANDLER(WM_CONTEXTMENU, OnContextMenu)
  28. MESSAGE_HANDLER(WM_HELP, OnHelp)
  29. NOTIFY_CODE_HANDLER(PSN_APPLY, OnOk)
  30. COMMAND_ID_HANDLER(RDB_Minimize, OnChange)
  31. COMMAND_ID_HANDLER(RDB_Balance, OnChange)
  32. COMMAND_ID_HANDLER(RDB_FileSharing, OnChange)
  33. COMMAND_ID_HANDLER(RDB_NetApps, OnChange)
  34. COMMAND_ID_HANDLER(CHK_Announce, OnChange)
  35. END_MSG_MAP()
  36. CServerConfigDlg(CSrvrcfg *psc): m_psc(psc) {}
  37. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam,
  38. LPARAM lParam, BOOL& bHandled);
  39. LRESULT OnContextMenu(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& Handled);
  40. LRESULT OnHelp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  41. LRESULT OnOk(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  42. LRESULT OnChange(WORD wNotifyCode, WORD wID,
  43. HWND hWndCtl, BOOL& bHandled)
  44. {
  45. // Simply tell the page changes were made
  46. SetChangedFlag();
  47. return 0;
  48. }
  49. private:
  50. CSrvrcfg *m_psc;
  51. };
  52. #endif //!_SRVRDLG_H