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.

65 lines
2.3 KiB

  1. // DirectSoundFXCompressorPage.h : Declaration of the CDirectSoundFXCompressorPage
  2. #ifndef __DIRECTSOUNDFXCOMPRESSORPAGE_H_
  3. #define __DIRECTSOUNDFXCOMPRESSORPAGE_H_
  4. #include "resource.h" // main symbols
  5. #include <dsound.h>
  6. #include "ControlHelp.h"
  7. EXTERN_C const CLSID CLSID_DirectSoundFXCompressorPage;
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CDirectSoundFXCompressorPage
  10. class ATL_NO_VTABLE CDirectSoundFXCompressorPage :
  11. public CComObjectRootEx<CComSingleThreadModel>,
  12. public CComCoClass<CDirectSoundFXCompressorPage, &CLSID_DirectSoundFXCompressorPage>,
  13. public IPropertyPageImpl<CDirectSoundFXCompressorPage>,
  14. public CDialogImpl<CDirectSoundFXCompressorPage>
  15. {
  16. public:
  17. CDirectSoundFXCompressorPage();
  18. enum {IDD = IDD_DIRECTSOUNDFXCOMPRESSORPAGE};
  19. DECLARE_REGISTRY_RESOURCEID(IDR_DIRECTSOUNDFXCOMPRESSORPAGE)
  20. DECLARE_PROTECT_FINAL_CONSTRUCT()
  21. BEGIN_COM_MAP(CDirectSoundFXCompressorPage)
  22. COM_INTERFACE_ENTRY(IPropertyPage)
  23. END_COM_MAP()
  24. BEGIN_MSG_MAP(CDirectSoundFXCompressorPage)
  25. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog);
  26. MESSAGE_HANDLER(WM_HSCROLL, OnControlMessage);
  27. MESSAGE_HANDLER(WM_COMMAND, OnControlMessage);
  28. CHAIN_MSG_MAP(IPropertyPageImpl<CDirectSoundFXCompressorPage>)
  29. END_MSG_MAP()
  30. // Handler prototypes:
  31. // LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  32. // LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  33. // LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  34. STDMETHOD(SetObjects)(ULONG nObjects, IUnknown **ppUnk);
  35. STDMETHOD(Apply)(void);
  36. // Message handlers
  37. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  38. LRESULT OnControlMessage(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  39. // Member variables
  40. CComPtr<IDirectSoundFXCompressor> m_IDSFXCompressor;
  41. CSliderValue m_sliderGain;
  42. CSliderValue m_sliderAttack;
  43. CSliderValue m_sliderRelease;
  44. CSliderValue m_sliderThreshold;
  45. CSliderValue m_sliderRatio;
  46. CSliderValue m_sliderPredelay;
  47. CSliderValue m_sliderCompMeterReset;
  48. CSliderValue m_sliderCompInputMeter;
  49. CSliderValue m_sliderCompGainMeter;
  50. Handler *m_rgpHandlers[7];
  51. };
  52. #endif //__DIRECTSOUNDFXCOMPRESSORPAGE_H_