mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 15:33:12 +00:00
[SHELL32][EXPLORER][SHLWAPI][SDK] Implement SHGetSetSettings (#6982)
These settings are cached per-process (and invalidated by the global counter). This should reduce the number of registry reads performed by DefView and CFSFolder.
This commit is contained in:
parent
80c170d7bc
commit
71a3be2497
11 changed files with 332 additions and 136 deletions
|
@ -204,10 +204,9 @@ public:
|
|||
|
||||
LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
|
||||
{
|
||||
// fix me: start menu style (classic/modern) should be read somewhere from the registry.
|
||||
CheckDlgButton(IDC_TASKBARPROP_STARTMENUCLASSIC, BST_CHECKED); // HACK: This has to be read from registry!!!!!!!
|
||||
BOOL modern = SHELL_GetSetting(SSF_STARTPANELON, fStartPanelOn);
|
||||
CheckDlgButton(modern ? IDC_TASKBARPROP_STARTMENU : IDC_TASKBARPROP_STARTMENUCLASSIC, BST_CHECKED);
|
||||
_UpdateDialog();
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -219,7 +218,9 @@ public:
|
|||
|
||||
int OnApply()
|
||||
{
|
||||
//TODO
|
||||
SHELLSTATE ss;
|
||||
ss.fStartPanelOn = !IsDlgButtonChecked(IDC_TASKBARPROP_STARTMENUCLASSIC);
|
||||
SHGetSetSettings(&ss, SSF_STARTPANELON, TRUE);
|
||||
return PSNRET_NOERROR;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue