// DirectSoundFXI3DL2SourcePage.h : Declaration of the CDirectSoundFXI3DL2SourcePage #ifndef __DIRECTSOUNDFXI3DL2SOURCEPAGE_H_ #define __DIRECTSOUNDFXI3DL2SOURCEPAGE_H_ #include "resource.h" // main symbols #include #include "ControlHelp.h" EXTERN_C const CLSID CLSID_DirectSoundFXI3DL2SourcePage; ///////////////////////////////////////////////////////////////////////////// // CDirectSoundFXI3DL2SourcePage class ATL_NO_VTABLE CDirectSoundFXI3DL2SourcePage : public CComObjectRootEx, public CComCoClass, public IPropertyPageImpl, public CDialogImpl { public: CDirectSoundFXI3DL2SourcePage(); enum {IDD = IDD_DIRECTSOUNDFXI3DL2SOURCEPAGE}; DECLARE_REGISTRY_RESOURCEID(IDR_DIRECTSOUNDFXI3DL2SOURCEPAGE) DECLARE_PROTECT_FINAL_CONSTRUCT() BEGIN_COM_MAP(CDirectSoundFXI3DL2SourcePage) COM_INTERFACE_ENTRY(IPropertyPage) END_COM_MAP() BEGIN_MSG_MAP(CDirectSoundFXI3DL2SourcePage) MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog); MESSAGE_HANDLER(WM_HSCROLL, OnControlMessage); MESSAGE_HANDLER(WM_COMMAND, OnControlMessage); CHAIN_MSG_MAP(IPropertyPageImpl) END_MSG_MAP() // Handler prototypes: // LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); // LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); // LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled); STDMETHOD(SetObjects)(ULONG nObjects, IUnknown **ppUnk); STDMETHOD(Apply)(void); // Message handlers LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); LRESULT OnControlMessage(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); // Member variables CComPtr m_IDSFXI3DL2Source; CSliderValue m_sliderDirect; CSliderValue m_sliderDirectHF; CSliderValue m_sliderRoom; CSliderValue m_sliderRoomHF; CSliderValue m_sliderRoomRolloffFactor; CSliderValue m_sliderObstruction; CSliderValue m_sliderObstructionLFRatio; CSliderValue m_sliderOcclusion; CSliderValue m_sliderOcclusionLFRatio; CRadioChoice m_radioFlags; Handler *m_rgpHandlers[11]; }; #endif //__DIRECTSOUNDFXI3DL2SOURCEPAGE_H_