2012-03-27 21:20:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "IPropertySheetPage.h"
|
|
|
|
#include "PropertySheetDefs.h"
|
|
|
|
#include "PageConfigTfe.h"
|
|
|
|
class CPropertySheetHelper;
|
|
|
|
|
2012-05-06 22:14:03 +00:00
|
|
|
class CPageConfig : private IPropertySheetPage
|
2012-03-27 21:20:36 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
CPageConfig(CPropertySheetHelper& PropertySheetHelper) :
|
|
|
|
m_Page(PG_CONFIG),
|
2012-05-06 22:14:03 +00:00
|
|
|
m_PropertySheetHelper(PropertySheetHelper)
|
2012-03-27 21:20:36 +00:00
|
|
|
{
|
|
|
|
CPageConfig::ms_this = this;
|
|
|
|
}
|
|
|
|
virtual ~CPageConfig(){}
|
|
|
|
|
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
|
|
|
|
|
|
|
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);
|
2012-03-27 21:20:36 +00:00
|
|
|
eApple2Type GetApple2Type(DWORD NewMenuItem);
|
2012-05-06 22:14:03 +00:00
|
|
|
void EnableTrackbar(HWND hWnd, BOOL enable);
|
2012-03-27 21:20:36 +00:00
|
|
|
void ui_tfe_settings_dialog(HWND hwnd);
|
2012-07-08 12:21:15 +00:00
|
|
|
bool IsOkToBenchmark(HWND hWnd, const bool bConfigChanged);
|
2012-03-27 21:20:36 +00:00
|
|
|
|
|
|
|
static CPageConfig* ms_this;
|
|
|
|
static const TCHAR m_ComputerChoices[];
|
|
|
|
|
|
|
|
const PAGETYPE m_Page;
|
|
|
|
CPropertySheetHelper& m_PropertySheetHelper;
|
|
|
|
CPageConfigTfe m_PageConfigTfe;
|
|
|
|
};
|