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.

70 lines
2.2 KiB

  1. //-----------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: D L G R A S. H
  7. //
  8. // Contents: Declaration for CTcpRasPage
  9. //
  10. // Notes: CTcpRasPage is for setting PPP/SLIP specific parameters
  11. //
  12. // Author: tongl 10 Apr 1998
  13. //-----------------------------------------------------------------------
  14. #pragma once
  15. #include <ncxbase.h>
  16. #include <ncatlps.h>
  17. class CTcpRasPage : public CPropSheetPage
  18. {
  19. public:
  20. // Declare the message map
  21. BEGIN_MSG_MAP(CTcpRasPage)
  22. // Initialize dialog
  23. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  24. MESSAGE_HANDLER(WM_CONTEXTMENU, OnContextMenu)
  25. MESSAGE_HANDLER(WM_HELP, OnHelp)
  26. // Property page notification message handlers
  27. NOTIFY_CODE_HANDLER(PSN_APPLY, OnApply)
  28. NOTIFY_CODE_HANDLER(PSN_KILLACTIVE, OnKillActive)
  29. NOTIFY_CODE_HANDLER(PSN_SETACTIVE, OnActive)
  30. NOTIFY_CODE_HANDLER(PSN_RESET, OnCancel)
  31. END_MSG_MAP()
  32. // Constructors/Destructors
  33. CTcpRasPage(CTcpAddrPage * pTcpAddrPage,
  34. ADAPTER_INFO * pAdapterDlg,
  35. const DWORD * adwHelpIDs = NULL);
  36. ~CTcpRasPage();
  37. // Interface
  38. public:
  39. // message map functions
  40. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& fHandled);
  41. LRESULT OnContextMenu(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& fHandled);
  42. LRESULT OnHelp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& fHandled);
  43. // notify handlers for the property page
  44. LRESULT OnApply(int idCtrl, LPNMHDR pnmh, BOOL& fHandled);
  45. LRESULT OnKillActive(int idCtrl, LPNMHDR pnmh, BOOL& fHandled);
  46. LRESULT OnActive(int idCtrl, LPNMHDR pnmh, BOOL& fHandled);
  47. LRESULT OnCancel(int idCtrl, LPNMHDR pnmh, BOOL& fHandled);
  48. private:
  49. CTcpAddrPage * m_pParentDlg;
  50. ADAPTER_INFO * m_pAdapterInfo;
  51. BOOL m_fModified;
  52. const DWORD* m_adwHelpIDs;
  53. // Inlines
  54. BOOL IsModified() {return m_fModified;}
  55. void SetModifiedTo(BOOL bState) {m_fModified = bState;}
  56. void PageModified() { m_fModified = TRUE; PropSheet_Changed(GetParent(), m_hWnd);}
  57. };