mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-23 16:30:23 +00:00
41 lines
1.1 KiB
C++
41 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "IPropertySheetPage.h"
|
|
#include "PropertySheetDefs.h"
|
|
#include "PageConfigTfe.h"
|
|
class CPropertySheetHelper;
|
|
|
|
class CPageConfig : private IPropertySheetPage
|
|
{
|
|
public:
|
|
CPageConfig(CPropertySheetHelper& PropertySheetHelper) :
|
|
m_Page(PG_CONFIG),
|
|
m_PropertySheetHelper(PropertySheetHelper)
|
|
{
|
|
CPageConfig::ms_this = this;
|
|
}
|
|
virtual ~CPageConfig(){}
|
|
|
|
static BOOL CALLBACK DlgProc(HWND hWnd, UINT message, WPARAM wparam, LPARAM lparam);
|
|
|
|
protected:
|
|
// IPropertySheetPage
|
|
virtual BOOL DlgProcInternal(HWND hWnd, UINT message, WPARAM wparam, LPARAM lparam);
|
|
virtual void DlgOK(HWND hWnd);
|
|
virtual void DlgCANCEL(HWND hWnd){}
|
|
|
|
private:
|
|
void InitOptions(HWND hWnd);
|
|
eApple2Type GetApple2Type(DWORD NewMenuItem);
|
|
void EnableTrackbar(HWND hWnd, BOOL enable);
|
|
void ui_tfe_settings_dialog(HWND hwnd);
|
|
bool IsOkToBenchmark(HWND hWnd, const bool bConfigChanged);
|
|
|
|
static CPageConfig* ms_this;
|
|
static const TCHAR m_ComputerChoices[];
|
|
|
|
const PAGETYPE m_Page;
|
|
CPropertySheetHelper& m_PropertySheetHelper;
|
|
CPageConfigTfe m_PageConfigTfe;
|
|
};
|