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.

53 lines
1.6 KiB

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