From ce6fb8d8f91c5b858cce8d8de523c71c783697b0 Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Fri, 5 Aug 2022 21:13:12 +0300 Subject: [PATCH] GUI: Hide Taskbar - Location in Windows 11 style on OS builds 22621+ --- ExplorerPatcher/GUI.c | 1 + ExplorerPatcher/settings.reg | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ExplorerPatcher/GUI.c b/ExplorerPatcher/GUI.c index c22c420..c9f359c 100644 --- a/ExplorerPatcher/GUI.c +++ b/ExplorerPatcher/GUI.c @@ -1081,6 +1081,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt) else if (!_stricmp(funcName, "!IsWindows10StartMenu") && (dwRes = 0, RegGetValueW(HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", L"Start_ShowClassicMode", RRF_RT_DWORD, NULL, &dwRes, &dwSize), (dwRes == 1))) bSkipLines = TRUE; else if (!_stricmp(funcName, "IsWeatherEnabled") && (dwRes = 0, RegGetValueW(HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\People", L"PeopleBand", RRF_RT_DWORD, NULL, &dwRes, &dwSize), (dwRes != 1))) bSkipLines = TRUE; else if (!_stricmp(funcName, "!IsWindows11Version22H2OrHigher") && IsWindows11Version22H2OrHigher()) bSkipLines = TRUE; + else if (!_stricmp(funcName, "!(IsWindows11Version22H2OrHigher&&!IsOldTaskbar)") && (IsWindows11Version22H2OrHigher() && (dwRes = 1, RegGetValueW(HKEY_CURRENT_USER, _T(REGPATH), L"OldTaskbar", RRF_RT_DWORD, NULL, &dwRes, &dwSize), (dwRes != 1)))) bSkipLines = TRUE; if (bSkipLines) { do diff --git a/ExplorerPatcher/settings.reg b/ExplorerPatcher/settings.reg index 6022a60..30da3ed 100644 --- a/ExplorerPatcher/settings.reg +++ b/ExplorerPatcher/settings.reg @@ -16,6 +16,7 @@ ;shell:::{05d7b0f4-2121-4eff-bf6b-ed3f69b894d9} ;y Customize system icons in the notification area 🡕 ;shell:::{05d7b0f4-2121-4eff-bf6b-ed3f69b894d9}\SystemIcons +;s Taskbar_LocationSection !(IsWindows11Version22H2OrHigher&&!IsOldTaskbar) [HKEY_CURRENT_USER\Software\ExplorerPatcher] ;c 4 Primary taskbar location on screen * ;x 3 Bottom (default) @@ -29,6 +30,7 @@ ;x 0 Left ;x 2 Right ;"Virtualized_{D17F1E1A-5919-4427-8F89-A1A8503CA3EB}_MMTaskbarPosition"=dword:00000003 +;g Taskbar_LocationSection ;s Taskbar_CortanaButtonSection !IsWindows11Version22H2OrHigher [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] ;c 3 Extra button should be