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.

52 lines
1.5 KiB

  1. // DurationPage.h : Declaration of the CDurationPage
  2. #ifndef __DURATIONPAGE_H_
  3. #define __DURATIONPAGE_H_
  4. #include "resource.h" // main symbols
  5. #include "..\tools.h"
  6. #include "ControlHelp.h"
  7. EXTERN_C const CLSID CLSID_DurationPage;
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CDurationPage
  10. class ATL_NO_VTABLE CDurationPage :
  11. public CComObjectRootEx<CComSingleThreadModel>,
  12. public CComCoClass<CDurationPage, &CLSID_DurationPage>,
  13. public IPropertyPageImpl<CDurationPage>,
  14. public CDialogImpl<CDurationPage>
  15. {
  16. public:
  17. CDurationPage();
  18. virtual ~CDurationPage();
  19. enum {IDD = IDD_DURATIONPAGE};
  20. DECLARE_REGISTRY_RESOURCEID(IDR_DURATIONPAGE)
  21. DECLARE_PROTECT_FINAL_CONSTRUCT()
  22. BEGIN_COM_MAP(CDurationPage)
  23. COM_INTERFACE_ENTRY(IPropertyPage)
  24. END_COM_MAP()
  25. BEGIN_MSG_MAP(CDurationPage)
  26. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog);
  27. MESSAGE_HANDLER(WM_COMMAND, OnCommand);
  28. MESSAGE_HANDLER(WM_HSCROLL, OnSlider);
  29. CHAIN_MSG_MAP(IPropertyPageImpl<CDurationPage>)
  30. END_MSG_MAP()
  31. // Handler prototypes:
  32. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  33. LRESULT OnSlider(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  34. LRESULT OnCommand(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  35. STDMETHOD(SetObjects)(ULONG cObjects,IUnknown **ppUnk);
  36. STDMETHOD(Apply)(void);
  37. private:
  38. IDirectMusicDurationTool * m_pDuration;
  39. CSliderValue m_ctScale;
  40. };
  41. #endif //__DURATIONPAGE_H_