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.

74 lines
1.9 KiB

  1. // PageAddress.h : Declaration of the CPageAddress
  2. #ifndef __PAGEADDRESS_H_
  3. #define __PAGEADDRESS_H_
  4. #include "resource.h" // main symbols
  5. #include "DlgBase.h"
  6. #include "PageTerm.h"
  7. EXTERN_C const CLSID CLSID_PageAddress;
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CPageAddress
  10. class ATL_NO_VTABLE CPageAddress :
  11. public CComObjectRootEx<CComMultiThreadModel>,
  12. public CComCoClass<CPageAddress, &CLSID_PageAddress>,
  13. public IPropertyPageImpl<CPageAddress>,
  14. public CDialogImpl<CPageAddress>
  15. {
  16. public:
  17. CPageAddress();
  18. ~CPageAddress();
  19. enum {IDD = IDD_PAGEADDRESS};
  20. DECLARE_MY_HELP;
  21. // Members
  22. public:
  23. HIMAGELIST m_hIml;
  24. static CPageTerminals *m_pPageTerminals;
  25. // Attributes
  26. public:
  27. int GetPreferredDevice() const;
  28. void SetPreferredDevice( DWORD dwAddressType );
  29. DECLARE_REGISTRY_RESOURCEID(IDR_PAGEADDRESS)
  30. DECLARE_NOT_AGGREGATABLE(CPageAddress)
  31. BEGIN_COM_MAP(CPageAddress)
  32. COM_INTERFACE_ENTRY_IMPL(IPropertyPage)
  33. END_COM_MAP()
  34. // Implementation
  35. public:
  36. BEGIN_MSG_MAP(CPageAddress)
  37. CHAIN_MSG_MAP(IPropertyPageImpl<CPageAddress>)
  38. MESSAGE_HANDLER(WM_PAINT, OnPaint)
  39. COMMAND_RANGE_HANDLER(IDC_RDO_PREFER_POTS, IDC_RDO_PREFER_INTERNET, OnSelChange)
  40. COMMAND_CODE_HANDLER(CBN_SELCHANGE, OnSelChange)
  41. COMMAND_ID_HANDLER(IDC_BTN_TELEPHONY_CPL, OnTelephonyCPL )
  42. MESSAGE_MY_HELP;
  43. END_MSG_MAP()
  44. LRESULT OnButtonClicked(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  45. LRESULT OnSelChange(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  46. LRESULT OnPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  47. LRESULT OnTelephonyCPL(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  48. // Interface overrides
  49. public:
  50. STDMETHOD(Apply)();
  51. STDMETHOD(Activate)( /* [in] */ HWND hWndParent,
  52. /* [in] */ LPCRECT pRect,
  53. /* [in] */ BOOL bModal);
  54. STDMETHOD(Deactivate)();
  55. };
  56. #endif //__PAGEADDRESS_H_