mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:05:41 +00:00
[EXPLORER] Implement NoWinKeys and HideClock restrictions (#7926)
This commit is contained in:
parent
85afe48c3e
commit
8b6907f2a6
5 changed files with 59 additions and 33 deletions
|
@ -276,11 +276,16 @@ public:
|
|||
|
||||
LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
|
||||
{
|
||||
CheckDlgButton(IDC_TASKBARPROP_CLOCK, (!g_TaskbarSettings.sr.HideClock) ? BST_CHECKED : BST_UNCHECKED);
|
||||
::EnableWindow(GetDlgItem(IDC_TASKBARPROP_CLOCK), !SHRestricted(REST_HIDECLOCK));
|
||||
CheckDlgButton(IDC_TASKBARPROP_CLOCK, (!GetHideClock()) ? BST_CHECKED : BST_UNCHECKED);
|
||||
CheckDlgButton(IDC_TASKBARPROP_SECONDS, g_TaskbarSettings.bShowSeconds ? BST_CHECKED : BST_UNCHECKED);
|
||||
CheckDlgButton(IDC_TASKBARPROP_HIDEICONS, g_TaskbarSettings.bHideInactiveIcons ? BST_CHECKED : BST_UNCHECKED);
|
||||
CheckDlgButton(IDC_TASKBARPROP_DESKTOP, g_TaskbarSettings.bShowDesktopButton ? BST_CHECKED : BST_UNCHECKED);
|
||||
|
||||
// TODO: bHideInactiveIcons is not implemented yet, just disable for now
|
||||
CheckDlgButton(IDC_TASKBARPROP_HIDEICONS, BST_UNCHECKED);
|
||||
::EnableWindow(GetDlgItem(IDC_TASKBARPROP_HIDEICONS), FALSE);
|
||||
|
||||
_UpdateDialog();
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue