67 lines
2.3 KiB
C++
67 lines
2.3 KiB
C++
// DirectSoundFXI3DL2SourcePage.h : Declaration of the CDirectSoundFXI3DL2SourcePage
|
|
|
|
#ifndef __DIRECTSOUNDFXI3DL2SOURCEPAGE_H_
|
|
#define __DIRECTSOUNDFXI3DL2SOURCEPAGE_H_
|
|
|
|
#include "resource.h" // main symbols
|
|
#include <dsound.h>
|
|
#include "ControlHelp.h"
|
|
|
|
EXTERN_C const CLSID CLSID_DirectSoundFXI3DL2SourcePage;
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CDirectSoundFXI3DL2SourcePage
|
|
class ATL_NO_VTABLE CDirectSoundFXI3DL2SourcePage :
|
|
public CComObjectRootEx<CComSingleThreadModel>,
|
|
public CComCoClass<CDirectSoundFXI3DL2SourcePage, &CLSID_DirectSoundFXI3DL2SourcePage>,
|
|
public IPropertyPageImpl<CDirectSoundFXI3DL2SourcePage>,
|
|
public CDialogImpl<CDirectSoundFXI3DL2SourcePage>
|
|
{
|
|
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<CDirectSoundFXI3DL2SourcePage>)
|
|
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<IDirectSoundFXI3DL2Source> 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_
|