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(){}
|
|
|
|
|
2012-05-06 22:14:03 +00:00
|
|
|
static BOOL CALLBACK DlgProc(HWND hWnd, UINT message, WPARAM wparam, LPARAM lparam);
|
2012-03-27 21:20:36 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
// IPropertySheetPage
|
2012-05-06 22:14:03 +00:00
|
|
|
virtual BOOL DlgProcInternal(HWND hWnd, UINT message, WPARAM wparam, LPARAM lparam);
|
|
|
|
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);
|
|
|
|
void EnableHDD(HWND hWnd, BOOL bEnable);
|
2017-06-03 17:12:40 +00:00
|
|
|
void EnableDisk(HWND hWnd, BOOL bEnable);
|
2014-10-10 20:24:50 +00:00
|
|
|
void HandleHDDCombo(HWND hWnd, UINT driveSelected, UINT comboSelected);
|
|
|
|
void HandleDiskCombo(HWND hWnd, UINT driveSelected, UINT comboSelected);
|
|
|
|
UINT RemovalConfirmation(UINT uCommand);
|
2012-03-27 21:20:36 +00:00
|
|
|
|
|
|
|
static CPageDisk* ms_this;
|
|
|
|
static const TCHAR m_discchoices[];
|
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;
|
|
|
|
};
|