44 lines
1.0 KiB
C++
44 lines
1.0 KiB
C++
|
#include "../../User Interface.h"
|
||
|
#include "Settings Page.h"
|
||
|
|
||
|
CGeneralOptionsPage::CGeneralOptionsPage (HWND hParent, const RECT & rcDispay )
|
||
|
{
|
||
|
if (!Create(hParent,rcDispay))
|
||
|
{
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
AddModCheckBox(GetDlgItem(IDC_AUTOSLEEP),Setting_AutoSleep);
|
||
|
AddModCheckBox(GetDlgItem(IDC_LOAD_FULLSCREEN),Setting_AutoFullscreen);
|
||
|
AddModCheckBox(GetDlgItem(IDC_SCREEN_SAVER),Setting_DisableScrSaver);
|
||
|
AddModCheckBox(GetDlgItem(IDC_BASIC_MODE),UserInterface_BasicMode);
|
||
|
|
||
|
UpdatePageSettings();
|
||
|
}
|
||
|
|
||
|
void CGeneralOptionsPage::HidePage()
|
||
|
{
|
||
|
ShowWindow(SW_HIDE);
|
||
|
}
|
||
|
|
||
|
void CGeneralOptionsPage::ShowPage()
|
||
|
{
|
||
|
ShowWindow(SW_SHOW);
|
||
|
}
|
||
|
|
||
|
void CGeneralOptionsPage::ApplySettings( bool UpdateScreen )
|
||
|
{
|
||
|
CSettingsPageImpl<CGeneralOptionsPage>::ApplySettings(UpdateScreen);
|
||
|
}
|
||
|
|
||
|
bool CGeneralOptionsPage::EnableReset ( void )
|
||
|
{
|
||
|
if (CSettingsPageImpl<CGeneralOptionsPage>::EnableReset()) { return true; }
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
void CGeneralOptionsPage::ResetPage()
|
||
|
{
|
||
|
CSettingsPageImpl<CGeneralOptionsPage>::ResetPage();
|
||
|
}
|