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.

66 lines
2.4 KiB

  1. // DirectSoundFXI3DL2SourcePage.h : Declaration of the CDirectSoundFXI3DL2SourcePage
  2. #ifndef __DIRECTSOUNDFXI3DL2SOURCEPAGE_H_
  3. #define __DIRECTSOUNDFXI3DL2SOURCEPAGE_H_
  4. #include "resource.h" // main symbols
  5. #include <dsound.h>
  6. #include "ControlHelp.h"
  7. EXTERN_C const CLSID CLSID_DirectSoundFXI3DL2SourcePage;
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CDirectSoundFXI3DL2SourcePage
  10. class ATL_NO_VTABLE CDirectSoundFXI3DL2SourcePage :
  11. public CComObjectRootEx<CComSingleThreadModel>,
  12. public CComCoClass<CDirectSoundFXI3DL2SourcePage, &CLSID_DirectSoundFXI3DL2SourcePage>,
  13. public IPropertyPageImpl<CDirectSoundFXI3DL2SourcePage>,
  14. public CDialogImpl<CDirectSoundFXI3DL2SourcePage>
  15. {
  16. public:
  17. CDirectSoundFXI3DL2SourcePage();
  18. enum {IDD = IDD_DIRECTSOUNDFXI3DL2SOURCEPAGE};
  19. DECLARE_REGISTRY_RESOURCEID(IDR_DIRECTSOUNDFXI3DL2SOURCEPAGE)
  20. DECLARE_PROTECT_FINAL_CONSTRUCT()
  21. BEGIN_COM_MAP(CDirectSoundFXI3DL2SourcePage)
  22. COM_INTERFACE_ENTRY(IPropertyPage)
  23. END_COM_MAP()
  24. BEGIN_MSG_MAP(CDirectSoundFXI3DL2SourcePage)
  25. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog);
  26. MESSAGE_HANDLER(WM_HSCROLL, OnControlMessage);
  27. MESSAGE_HANDLER(WM_COMMAND, OnControlMessage);
  28. CHAIN_MSG_MAP(IPropertyPageImpl<CDirectSoundFXI3DL2SourcePage>)
  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<IDirectSoundFXI3DL2Source> m_IDSFXI3DL2Source;
  41. CSliderValue m_sliderDirect;
  42. CSliderValue m_sliderDirectHF;
  43. CSliderValue m_sliderRoom;
  44. CSliderValue m_sliderRoomHF;
  45. CSliderValue m_sliderRoomRolloffFactor;
  46. CSliderValue m_sliderObstruction;
  47. CSliderValue m_sliderObstructionLFRatio;
  48. CSliderValue m_sliderOcclusion;
  49. CSliderValue m_sliderOcclusionLFRatio;
  50. CRadioChoice m_radioFlags;
  51. Handler *m_rgpHandlers[11];
  52. };
  53. #endif //__DIRECTSOUNDFXI3DL2SOURCEPAGE_H_