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 CPageDisk : private IPropertySheetPage
|
2012-03-27 21:20:36 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
CPageDisk(CPropertySheetHelper& PropertySheetHelper) :
|
|
|
|
m_Page(PG_DISK),
|
2012-05-06 22:14:03 +00:00
|
|
|
m_PropertySheetHelper(PropertySheetHelper)
|
2012-03-27 21:20:36 +00:00
|
|
|
{
|
|
|
|
CPageDisk::ms_this = this;
|
|
|
|
}
|
|
|
|
virtual ~CPageDisk(){}
|
|
|
|
|
2021-01-01 12:57:40 +00:00
|
|
|
static INT_PTR CALLBACK DlgProc(HWND hWnd, UINT message, WPARAM wparam, LPARAM lparam);
|
2012-03-27 21:20:36 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
// IPropertySheetPage
|
2021-01-01 12:57:40 +00: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:
|
2012-05-06 22:14:03 +00:00
|
|
|
void InitOptions(HWND hWnd);
|
2019-12-19 19:42:30 +00:00
|
|
|
void InitComboFloppyDrive(HWND hWnd, UINT slot);
|
|
|
|
void InitComboHDD(HWND hWnd, UINT slot);
|
2012-05-06 22:14:03 +00:00
|
|
|
void EnableHDD(HWND hWnd, BOOL bEnable);
|
2021-08-29 10:39:51 +00:00
|
|
|
void EnableFloppyDrive(HWND hWnd, BOOL bEnable, UINT slot);
|
2014-10-10 20:24:50 +00:00
|
|
|
void HandleHDDCombo(HWND hWnd, UINT driveSelected, UINT comboSelected);
|
2021-08-29 10:39:51 +00:00
|
|
|
void HandleFloppyDriveCombo(HWND hWnd, UINT driveSelected, UINT comboSelected, UINT comboOther, UINT slot);
|
2018-12-09 11:48:22 +00:00
|
|
|
void HandleHDDSwap(HWND hWnd);
|
2014-10-10 20:24:50 +00:00
|
|
|
UINT RemovalConfirmation(UINT uCommand);
|
2012-03-27 21:20:36 +00:00
|
|
|
|
|
|
|
static CPageDisk* ms_this;
|
2014-10-01 23:18:46 +00:00
|
|
|
static const TCHAR m_defaultDiskOptions[];
|
|
|
|
static const TCHAR m_defaultHDDOptions[];
|
|
|
|
|
2012-03-27 21:20:36 +00:00
|
|
|
const PAGETYPE m_Page;
|
|
|
|
CPropertySheetHelper& m_PropertySheetHelper;
|
|
|
|
};
|