mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-11-15 09:05:39 +00:00
0139878dd7
Here are a few changes to make 64-bit build possible. The changes are mainly to use windows api in the correct way that works for both 32-bit and 64-bit builds.
43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "IPropertySheetPage.h"
|
|
#include "PropertySheetDefs.h"
|
|
#include "PageConfigTfe.h"
|
|
#include "Common.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 INT_PTR CALLBACK DlgProc(HWND hWnd, UINT message, WPARAM wparam, LPARAM lparam);
|
|
|
|
protected:
|
|
// IPropertySheetPage
|
|
virtual INT_PTR 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;
|
|
};
|