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.

51 lines
1.6 KiB

  1. // NmAgendaItemPropPage.h : Declaration of the CNmAgendaItemPropPage
  2. #ifndef __NMAGENDAITEMPROPPAGE_H_
  3. #define __NMAGENDAITEMPROPPAGE_H_
  4. #include "resource.h" // main symbols
  5. EXTERN_C const CLSID CLSID_NmAgendaItemPropPage;
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CNmAgendaItemPropPage
  8. class ATL_NO_VTABLE CNmAgendaItemPropPage :
  9. public CComObjectRootEx<CComSingleThreadModel>,
  10. public CComCoClass<CNmAgendaItemPropPage, &CLSID_NmAgendaItemPropPage>,
  11. public IPropertyPageImpl<CNmAgendaItemPropPage>,
  12. public CDialogImpl<CNmAgendaItemPropPage>
  13. {
  14. public:
  15. bool m_bInitialized;
  16. CNmAgendaItemPropPage()
  17. {
  18. m_dwTitleID = IDS_TITLENmAgendaItemPropPage;
  19. m_dwHelpFileID = IDS_HELPFILENmAgendaItemPropPage;
  20. m_dwDocStringID = IDS_DOCSTRINGNmAgendaItemPropPage;
  21. m_bInitialized = false;
  22. }
  23. enum {IDD = IDD_PROPPAGE_AGENDAITEM};
  24. DECLARE_REGISTRY_RESOURCEID(IDR_NMAGENDAITEMPROPPAGE)
  25. DECLARE_NOT_AGGREGATABLE(CNmAgendaItemPropPage)
  26. BEGIN_COM_MAP(CNmAgendaItemPropPage)
  27. COM_INTERFACE_ENTRY_IMPL(IPropertyPage)
  28. END_COM_MAP()
  29. BEGIN_MSG_MAP(CNmAgendaItemPropPage)
  30. MESSAGE_HANDLER( WM_INITDIALOG, OnInitDialog );
  31. CHAIN_MSG_MAP(IPropertyPageImpl<CNmAgendaItemPropPage>)
  32. COMMAND_HANDLER(IDC_EDITAGENDAITEMNAME, EN_CHANGE, OnAgendaItemNameChange)
  33. END_MSG_MAP()
  34. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  35. LRESULT OnAgendaItemNameChange(WORD wNotify, WORD wID, HWND hWnd, BOOL& bHandled);
  36. STDMETHOD(Apply)(void);
  37. };
  38. #endif //__NMAGENDAITEMPROPPAGE_H_