2016-01-27 09:11:59 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class CGeneralOptionsPage :
|
2022-09-26 02:31:54 +00:00
|
|
|
public CSettingsPageImpl<CGeneralOptionsPage>,
|
|
|
|
public CSettingsPage
|
2016-01-27 09:11:59 +00:00
|
|
|
{
|
|
|
|
|
2022-09-26 02:31:54 +00:00
|
|
|
BEGIN_MSG_MAP_EX(CGeneralOptionsPage)
|
|
|
|
{
|
|
|
|
COMMAND_ID_HANDLER_EX(IDC_AUTOSLEEP, CheckBoxChanged);
|
|
|
|
COMMAND_ID_HANDLER_EX(IDC_LOAD_FULLSCREEN, CheckBoxChanged);
|
|
|
|
COMMAND_ID_HANDLER_EX(IDC_SCREEN_SAVER, CheckBoxChanged);
|
|
|
|
COMMAND_ID_HANDLER_EX(IDC_DISCORD_RPC, CheckBoxChanged);
|
|
|
|
COMMAND_ID_HANDLER_EX(IDC_ENABLE_ENHANCEMENTS, CheckBoxChanged);
|
|
|
|
COMMAND_ID_HANDLER_EX(IDC_BASIC_MODE, OnBasicMode);
|
|
|
|
COMMAND_HANDLER_EX(IDC_REMEMBER, EN_UPDATE, EditBoxChanged);
|
|
|
|
COMMAND_HANDLER_EX(IDC_REMEMBERDIR, EN_UPDATE, EditBoxChanged);
|
|
|
|
}
|
|
|
|
END_MSG_MAP()
|
2016-01-27 09:11:59 +00:00
|
|
|
|
2022-09-26 02:31:54 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
IDD = IDD_Settings_General
|
|
|
|
};
|
2016-01-27 09:11:59 +00:00
|
|
|
|
|
|
|
public:
|
2022-09-26 02:31:54 +00:00
|
|
|
CGeneralOptionsPage(CSettingConfig * SettingsConfig, HWND hParent, const RECT & rcDispay);
|
2016-01-27 09:11:59 +00:00
|
|
|
|
2022-09-26 02:31:54 +00:00
|
|
|
LanguageStringID PageTitle(void)
|
|
|
|
{
|
|
|
|
return TAB_OPTIONS;
|
|
|
|
}
|
|
|
|
void HidePage(void);
|
|
|
|
void ShowPage(void);
|
|
|
|
void ApplySettings(bool UpdateScreen);
|
|
|
|
bool EnableReset(void);
|
|
|
|
void ResetPage(void);
|
2016-01-27 09:11:59 +00:00
|
|
|
|
|
|
|
private:
|
2022-09-26 02:31:54 +00:00
|
|
|
void OnBasicMode(UINT Code, int id, HWND ctl);
|
|
|
|
CSettingConfig * m_SettingsConfig;
|
2016-01-27 09:11:59 +00:00
|
|
|
};
|