2012-03-27 21:20:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "IPropertySheetPage.h"
|
|
|
|
#include "PropertySheetDefs.h"
|
2020-11-11 21:15:27 +00:00
|
|
|
#include "Card.h"
|
|
|
|
|
2012-03-27 21:20:36 +00:00
|
|
|
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),
|
2023-01-28 18:15:28 +00:00
|
|
|
m_PropertySheetHelper(PropertySheetHelper)
|
2012-03-27 21:20:36 +00:00
|
|
|
{
|
|
|
|
CPageSound::ms_this = this;
|
|
|
|
}
|
|
|
|
virtual ~CPageSound(){}
|
|
|
|
|
2021-01-01 23:57:40 +11:00
|
|
|
static INT_PTR 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
|
2021-01-01 23:57:40 +11:00
|
|
|
virtual INT_PTR DlgProcInternal(HWND hWnd, UINT message, WPARAM wparam, LPARAM lparam);
|
2012-05-06 22:14:03 +00:00
|
|
|
virtual void DlgOK(HWND hWnd);
|
|
|
|
virtual void DlgCANCEL(HWND hWnd){}
|
2012-03-27 21:20:36 +00:00
|
|
|
|
|
|
|
private:
|
2023-01-28 18:15:28 +00:00
|
|
|
enum SOUNDCARDCHOICE { SC_MOCKINGBOARD = 0, SC_PHASOR, SC_SAM, SC_EMPTY, _SOUNDCARD_MAX_CHOICES, SC_UNAVAILABLE };
|
|
|
|
|
2012-05-06 22:14:03 +00:00
|
|
|
void InitOptions(HWND hWnd);
|
2023-01-28 18:15:28 +00:00
|
|
|
SOUNDCARDCHOICE CardTypeToComboItem(SS_CARDTYPE card);
|
2012-05-06 22:14:03 +00:00
|
|
|
|
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[];
|
2023-01-28 18:15:28 +00:00
|
|
|
static const char m_soundCardChoices[];
|
|
|
|
static const char m_soundCardChoice_Unavailable[];
|
2012-03-27 21:20:36 +00:00
|
|
|
};
|