#include "stdafx.h" #include "SettingsPage.h" #include "SettingsPage-Game-DiskDrive.h" CGameDiskDrivePage::CGameDiskDrivePage(HWND hParent, const RECT & rcDispay) { if (!Create(hParent, rcDispay)) { return; } //Set the text for all gui Items SetDlgItemText(IDC_DISKSEEKTIMING_TEXT2, wGS(ROM_DISK_SEEK_TIMING).c_str()); CModifiedComboBox* ComboBox; ComboBox = AddModComboBox(GetDlgItem(IDC_DISKSEEKTIMING2), Game_DiskSeekTiming); if (ComboBox) { //ComboBox->SetTextField(GetDlgItem(IDC_MEMORY_SIZE_TEXT)); ComboBox->AddItem(wGS(ROM_DISK_SEEK_TIMING_TURBO).c_str(), DiskSeek_Turbo); ComboBox->AddItem(wGS(ROM_DISK_SEEK_TIMING_SLOW).c_str(), DiskSeek_Slow); } UpdatePageSettings(); } void CGameDiskDrivePage::ShowPage() { ShowWindow(SW_SHOW); } void CGameDiskDrivePage::HidePage() { ShowWindow(SW_HIDE); } void CGameDiskDrivePage::ApplySettings(bool UpdateScreen) { CSettingsPageImpl::ApplySettings(UpdateScreen); } bool CGameDiskDrivePage::EnableReset(void) { if (CSettingsPageImpl::EnableReset()) { return true; } return false; } void CGameDiskDrivePage::ResetPage() { CSettingsPageImpl::ResetPage(); }