mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-23 00:30:17 +00:00
44 lines
1.2 KiB
C++
44 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#include "IPropertySheetPage.h"
|
|
#include "PropertySheetDefs.h"
|
|
class CPropertySheetHelper;
|
|
|
|
class CPageDisk : private IPropertySheetPage
|
|
{
|
|
public:
|
|
CPageDisk(CPropertySheetHelper& PropertySheetHelper) :
|
|
m_Page(PG_DISK),
|
|
m_PropertySheetHelper(PropertySheetHelper)
|
|
{
|
|
CPageDisk::ms_this = this;
|
|
}
|
|
virtual ~CPageDisk(){}
|
|
|
|
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);
|
|
void InitComboHDD(HWND hWnd);
|
|
void EnableHDD(HWND hWnd, BOOL bEnable);
|
|
void EnableDisk(HWND hWnd, BOOL bEnable);
|
|
void HandleHDDCombo(HWND hWnd, UINT driveSelected, UINT comboSelected);
|
|
void HandleDiskCombo(HWND hWnd, UINT driveSelected, UINT comboSelected);
|
|
void HandleHDDSwap(HWND hWnd);
|
|
UINT RemovalConfirmation(UINT uCommand);
|
|
|
|
static CPageDisk* ms_this;
|
|
static const TCHAR m_discchoices[];
|
|
static const TCHAR m_defaultDiskOptions[];
|
|
static const TCHAR m_defaultHDDOptions[];
|
|
|
|
const PAGETYPE m_Page;
|
|
CPropertySheetHelper& m_PropertySheetHelper;
|
|
};
|