2012-03-27 21:20:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "IPropertySheetPage.h"
|
|
|
|
#include "PropertySheetDefs.h"
|
|
|
|
class CPropertySheetHelper;
|
|
|
|
|
2012-05-06 22:14:03 +00:00
|
|
|
class CPageSound : private IPropertySheetPage
|
2012-03-27 21:20:36 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
CPageSound(CPropertySheetHelper& PropertySheetHelper) :
|
|
|
|
m_Page(PG_SOUND),
|
|
|
|
m_PropertySheetHelper(PropertySheetHelper),
|
|
|
|
m_NewCardType(CT_Empty),
|
|
|
|
m_nCurrentIDCheckButton(0)
|
|
|
|
{
|
|
|
|
CPageSound::ms_this = this;
|
|
|
|
}
|
|
|
|
virtual ~CPageSound(){}
|
|
|
|
|
2012-05-06 22:14:03 +00:00
|
|
|
static BOOL CALLBACK DlgProc(HWND hWnd, UINT message, WPARAM wparam, LPARAM lparam);
|
2012-03-27 21:20:36 +00:00
|
|
|
|
|
|
|
DWORD GetVolumeMax(void){ return VOLUME_MAX; }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
// IPropertySheetPage
|
2012-05-06 22:14:03 +00:00
|
|
|
virtual BOOL DlgProcInternal(HWND hWnd, UINT message, WPARAM wparam, LPARAM lparam);
|
|
|
|
virtual void DlgOK(HWND hWnd);
|
|
|
|
virtual void DlgCANCEL(HWND hWnd){}
|
2012-03-27 21:20:36 +00:00
|
|
|
|
|
|
|
private:
|
2012-05-06 22:14:03 +00:00
|
|
|
void InitOptions(HWND hWnd);
|
|
|
|
bool NewSoundcardConfigured(HWND hWnd, WPARAM wparam, SS_CARDTYPE NewCardType);
|
|
|
|
|
2012-03-27 21:20:36 +00:00
|
|
|
static CPageSound* ms_this;
|
|
|
|
|
|
|
|
const PAGETYPE m_Page;
|
|
|
|
CPropertySheetHelper& m_PropertySheetHelper;
|
|
|
|
|
|
|
|
static const UINT VOLUME_MIN = 0;
|
|
|
|
static const UINT VOLUME_MAX = 59;
|
|
|
|
static const TCHAR m_soundchoices[];
|
|
|
|
|
|
|
|
SS_CARDTYPE m_NewCardType;
|
|
|
|
int m_nCurrentIDCheckButton;
|
|
|
|
};
|