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.

60 lines
1.9 KiB

  1. // QuantizePage.h : Declaration of the CQuantizePage
  2. #ifndef __QUANTIZEPAGE_H_
  3. #define __QUANTIZEPAGE_H_
  4. #include "resource.h" // main symbols
  5. #include "..\dmtool\tools.h"
  6. #include "ControlHelp.h"
  7. EXTERN_C const CLSID CLSID_QuantizePage;
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CQuantizePage
  10. class ATL_NO_VTABLE CQuantizePage :
  11. public CComObjectRootEx<CComSingleThreadModel>,
  12. public CComCoClass<CQuantizePage, &CLSID_QuantizePage>,
  13. public IPropertyPageImpl<CQuantizePage>,
  14. public CDialogImpl<CQuantizePage>
  15. {
  16. public:
  17. CQuantizePage();
  18. virtual ~CQuantizePage();
  19. enum {IDD = IDD_QUANTIZEPAGE};
  20. DECLARE_REGISTRY_RESOURCEID(IDR_QUANTIZEPAGE)
  21. DECLARE_PROTECT_FINAL_CONSTRUCT()
  22. BEGIN_COM_MAP(CQuantizePage)
  23. COM_INTERFACE_ENTRY(IPropertyPage)
  24. END_COM_MAP()
  25. BEGIN_MSG_MAP(CQuantizePage)
  26. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog);
  27. MESSAGE_HANDLER(WM_COMMAND, OnCommand);
  28. MESSAGE_HANDLER(WM_HSCROLL, OnSlider);
  29. CHAIN_MSG_MAP(IPropertyPageImpl<CQuantizePage>)
  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. // LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  36. // LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  37. // LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  38. STDMETHOD(SetObjects)(ULONG cObjects,IUnknown **ppUnk);
  39. STDMETHOD(Apply)(void);
  40. private:
  41. void SetTimeUnitRange();
  42. IDirectMusicQuantizeTool *m_pQuantize;
  43. CSliderValue m_ctStrength;
  44. CSliderValue m_ctResolution;
  45. CComboHelp m_ctTimeUnit;
  46. CComboHelp m_ctType;
  47. };
  48. #endif //__QUANTIZEPAGE_H_