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. // SwingPage.h : Declaration of the CSwingPage
  2. #ifndef __SWINGPAGE_H_
  3. #define __SWINGPAGE_H_
  4. #include "resource.h" // main symbols
  5. #include "..\dmtool\tools.h"
  6. #include "ControlHelp.h"
  7. EXTERN_C const CLSID CLSID_SwingPage;
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CSwingPage
  10. class ATL_NO_VTABLE CSwingPage :
  11. public CComObjectRootEx<CComSingleThreadModel>,
  12. public CComCoClass<CSwingPage, &CLSID_SwingPage>,
  13. public IPropertyPageImpl<CSwingPage>,
  14. public CDialogImpl<CSwingPage>
  15. {
  16. public:
  17. CSwingPage();
  18. virtual ~CSwingPage();
  19. enum {IDD = IDD_SWINGPAGE};
  20. DECLARE_REGISTRY_RESOURCEID(IDR_SWINGPAGE)
  21. DECLARE_PROTECT_FINAL_CONSTRUCT()
  22. BEGIN_COM_MAP(CSwingPage)
  23. COM_INTERFACE_ENTRY(IPropertyPage)
  24. END_COM_MAP()
  25. BEGIN_MSG_MAP(CSwingPage)
  26. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog);
  27. MESSAGE_HANDLER(WM_COMMAND, OnCommand);
  28. MESSAGE_HANDLER(WM_HSCROLL, OnSlider);
  29. CHAIN_MSG_MAP(IPropertyPageImpl<CSwingPage>)
  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. IDirectMusicSwingTool * m_pSwing;
  39. CSliderValue m_ctSwing;
  40. };
  41. #endif //__SWINGPAGE_H_