mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-08-08 01:25:14 +00:00
The Configuration Dialog -> Disks tab now has combos to show insert/eject disks, as well as it now the images are automatically swapped if you try to insert on one drive the image connected to the other The Apple logo was redone following the same-ish colour pattern but with a more modern look. (*) Updated based on first review: - Removed bmp from this pull request (coming later) - Corrected resource's constants values and deleted unused one - Initializing variables in CPageDisk constructot
47 lines
1.2 KiB
C++
47 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;
|
|
|
|
hdd1Selection = -1;
|
|
hdd2Selection = -1;
|
|
}
|
|
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 EnableHDD(HWND hWnd, BOOL bEnable);
|
|
void handleHDDCombo(HWND hWnd, UINT16 driveSelected, UINT16 comboSelected);
|
|
void handleDiskCombo(HWND hWnd, UINT16 driveSelected, UINT16 comboSelected);
|
|
int removalConfirmation(int iCommand);
|
|
|
|
static CPageDisk* ms_this;
|
|
static const TCHAR m_discchoices[];
|
|
static const TCHAR m_defaultDiskOptions[];
|
|
static const TCHAR m_defaultHDDOptions[];
|
|
|
|
int hdd1Selection;
|
|
int hdd2Selection;
|
|
|
|
const PAGETYPE m_Page;
|
|
CPropertySheetHelper& m_PropertySheetHelper;
|
|
};
|