Browse Source

Taskbar10: Option to hide the "Show desktop" button

pull/1138/head
Valentin Radu 4 years ago
parent
commit
c8bed99c1a
  1. 8
      ExplorerPatcher/dllmain.c
  2. 30
      ExplorerPatcher/settings.reg
  3. 9
      ExplorerPatcher/settings10.reg

8
ExplorerPatcher/dllmain.c

@ -5280,6 +5280,7 @@ INT64 ShowDesktopSubclassProc(
{ {
lRes = 0; lRes = 0;
} }
else if (dwVal) PostMessageW(hWnd, 794, 0, 0);
} }
return lRes; return lRes;
} }
@ -7576,6 +7577,13 @@ HTHEME explorer_OpenThemeDataForDpi(
} }
return hTheme; return hTheme;
} }
else if ((*((WORD*)&(pszClassList)+1)) && !wcscmp(pszClassList, L"TaskbarShowDesktop"))
{
DWORD dwVal = 0, dwSize = sizeof(DWORD);
RegGetValueW(HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", L"TaskbarSD", RRF_RT_REG_DWORD, NULL, &dwVal, &dwSize);
if (dwVal == 2) return NULL;
return OpenThemeDataForDpi(hwnd, pszClassList, dpi);
}
// task list - Taskband2 from CTaskListWnd::_HandleThemeChanged // task list - Taskband2 from CTaskListWnd::_HandleThemeChanged
if (bClassicThemeMitigations && (*((WORD*)&(pszClassList)+1)) && !wcscmp(pszClassList, L"Taskband2")) if (bClassicThemeMitigations && (*((WORD*)&(pszClassList)+1)) && !wcscmp(pszClassList, L"Taskband2"))

30
ExplorerPatcher/settings.reg

@ -41,9 +41,6 @@
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
;b Show Task view button ;b Show Task view button
"ShowTaskViewButton"=dword:00000001 "ShowTaskViewButton"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
;b Show Desktop button
"TaskbarSD"=dword:00000001
[HKEY_CURRENT_USER\Software\ExplorerPatcher] [HKEY_CURRENT_USER\Software\ExplorerPatcher]
;b Automatically hide the taskbar ;b Automatically hide the taskbar
;"Virtualized_{D17F1E1A-5919-4427-8F89-A1A8503CA3EB}_AutoHideTaskbar"=dword:00000000 ;"Virtualized_{D17F1E1A-5919-4427-8F89-A1A8503CA3EB}_AutoHideTaskbar"=dword:00000000
@ -83,6 +80,7 @@
;x 0 Large (default) ;x 0 Large (default)
"TaskbarSmallIcons"=dword:00000000 "TaskbarSmallIcons"=dword:00000000
;e ;e
;e
;g Taskbar_Windows10Section ;g Taskbar_Windows10Section
@ -97,17 +95,33 @@
[HKEY_CURRENT_USER\Software\Microsoft\TabletTip\1.7] [HKEY_CURRENT_USER\Software\Microsoft\TabletTip\1.7]
;b Show touch keyboard button * ;b Show touch keyboard button *
"TipbandDesiredVisibility"=dword:00000000 "TipbandDesiredVisibility"=dword:00000000
;s SystemTray_Section98 IsOldTaskbar
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
;b Show seconds in the clock
"ShowSecondsInSystemClock"=dword:00000000
;g SystemTray_Section98
[HKEY_CURRENT_USER\Software\ExplorerPatcher]
;i Control Center button *
"HideControlCenterButton"=dword:00000000
;s SystemTray_Section109 IsOldTaskbar
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
;c 3 Show desktop button
;x 1 Enabled (default)
;x 0 Disabled
;x 2 Hidden
"TaskbarSD"=dword:00000001
;g SystemTray_Section109
;s SystemTray_Section117 !IsOldTaskbar
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
;b Show desktop button
"TaskbarSD"=dword:00000001
;g SystemTray_Section117
;s SystemTray_Windows10Section IsOldTaskbar ;s SystemTray_Windows10Section IsOldTaskbar
[HKEY_CURRENT_USER\Software\ExplorerPatcher] [HKEY_CURRENT_USER\Software\ExplorerPatcher]
;p 2 ;p 2
;b Apply Windows 11 style to system tray icons * ;b Apply Windows 11 style to system tray icons *
"SkinIcons"=dword:00000001 "SkinIcons"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
;b Show seconds in the clock
"ShowSecondsInSystemClock"=dword:00000000
[HKEY_CURRENT_USER\Software\ExplorerPatcher] [HKEY_CURRENT_USER\Software\ExplorerPatcher]
;b Hide Control Center button *
"HideControlCenterButton"=dword:00000000
;a Choosing 'Open Network && Internet settings' when right clicking the ;a Choosing 'Open Network && Internet settings' when right clicking the
;c 3 network icon should open: ;c 3 network icon should open:
;x 0 Network section in the Settings app (default) ;x 0 Network section in the Settings app (default)

9
ExplorerPatcher/settings10.reg

@ -37,9 +37,6 @@
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
;b Show Task view button ;b Show Task view button
"ShowTaskViewButton"=dword:00000001 "ShowTaskViewButton"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
;b Show Desktop button
"TaskbarSD"=dword:00000001
[HKEY_CURRENT_USER\Software\ExplorerPatcher] [HKEY_CURRENT_USER\Software\ExplorerPatcher]
;b Automatically hide the taskbar ;b Automatically hide the taskbar
;"Virtualized_{D17F1E1A-5919-4427-8F89-A1A8503CA3EB}_AutoHideTaskbar"=dword:00000000 ;"Virtualized_{D17F1E1A-5919-4427-8F89-A1A8503CA3EB}_AutoHideTaskbar"=dword:00000000
@ -100,6 +97,12 @@
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
;b Show seconds in the clock ;b Show seconds in the clock
"ShowSecondsInSystemClock"=dword:00000000 "ShowSecondsInSystemClock"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
;c 3 Show desktop button
;x 1 Enabled (default)
;x 0 Disabled
;x 2 Hidden
"TaskbarSD"=dword:00000001
[HKEY_CURRENT_USER\Software\ExplorerPatcher] [HKEY_CURRENT_USER\Software\ExplorerPatcher]
;a Choosing 'Open Network && Internet settings' when right clicking the ;a Choosing 'Open Network && Internet settings' when right clicking the
;c 3 network icon should open: ;c 3 network icon should open:

Loading…
Cancel
Save