8 static const GUID guid_cfg_bogoSetting1 = { 0xbd5c777, 0x735c, 0x440d, { 0x8c, 0x71, 0x49, 0xb6, 0xac, 0xff, 0xce, 0xb8 } };
9 static const GUID guid_cfg_bogoSetting2 = { 0x752f1186, 0x9f61, 0x4f91, { 0xb3, 0xee, 0x2f, 0x25, 0xb1, 0x24, 0x83, 0x5d } };
12 static const GUID guid_advconfig_branch = { 0x28564ced, 0x4abf, 0x4f0c, { 0xa4, 0x43, 0x98, 0xda, 0x88, 0xe2, 0xcd, 0x39 } };
14 static const GUID guid_cfg_bogoSetting3 = { 0xf7008963, 0xed60, 0x4084, { 0xa8, 0x5d, 0xd1, 0xcd, 0xc5, 0x51, 0x22, 0xca } };
38 enum {
IDD = IDD_MYPREFERENCES};
46 MSG_WM_INITDIALOG(OnInitDialog)
51 BOOL OnInitDialog(CWindow, LPARAM);
101 const char *
get_name() {
return "Sample Component";}
104 static const GUID guid = { 0x7702c93e, 0x24dc, 0x48ed, { 0x8d, 0xb1, 0x3f, 0x27, 0xb3, 0x8c, 0x7c, 0xc9 } };
static preferences_page_factory_t< preferences_page_myimpl > g_preferences_page_myimpl_factory
OnEditChange COMMAND_HANDLER_EX(IDC_BOGO2, EN_CHANGE, OnEditChange) END_MSG_MAP() private void OnEditChange(UINT, int, CWindow)
static cfg_uint cfg_bogoSetting2(guid_cfg_bogoSetting2, default_cfg_bogoSetting2)
const char * get_name()
Retrieves name of the prefernces page to be displayed in preferences tree (static string)...
typedef BOOL(WINAPI *pPowerSetRequest_t)(__in HANDLE PowerRequest
const preferences_page_callback::ptr m_callback
BEGIN_MSG_MAP(CMyPreferences) MSG_WM_INITDIALOG(OnInitDialog) COMMAND_HANDLER_EX(IDC_BOGO1
static const GUID guid_advconfig_branch
GUID get_guid()
Retrieves GUID of the page.
static advconfig_integer_factory cfg_bogoSetting3("Bogo setting 3", guid_cfg_bogoSetting3, guid_advconfig_branch, 0, default_cfg_bogoSetting3, 0, 9999)
void apply()
Applies preferences changes.
CMyPreferences(preferences_page_callback::ptr callback)
static const GUID guid_cfg_bogoSetting3
Generic integer config variable class. Template parameter can be used to specify integer type to use...
GUID get_parent_guid()
Retrieves GUID of parent page/branch of this page. See preferences_page::guid_* constants for list of...
Service factory helper around integer-specialized advconfig_entry_string implementation. Use this class to register your own integer entries in Advanced Preferences. Usage: static advconfig_integer_factory myint(name, itemID, parentID, priority, initialValue, minValue, maxValue);.
static cfg_uint cfg_bogoSetting1(guid_cfg_bogoSetting1, default_cfg_bogoSetting1)
static const GUID guid_cfg_bogoSetting1
Service factory helper around standard advconfig_branch implementation. Use this class to register yo...
void reset()
Resets this page's content to the default values. Does not apply any changes - lets user preview the ...
static const GUID guid_cfg_bogoSetting2
static advconfig_branch_factory g_advconfigBranch("Sample Component", guid_advconfig_branch, advconfig_branch::guid_branch_tools, 0)
static const GUID guid_branch_tools