Win10 Taskbar Search State Refresh on Win11 24H2+
This mod makes the Windows 10 taskbar search box/icon running on Windows 11 24H2+ follow the Search setting immediately, retrying and verifying until it is applied
Author: babamohammed
This mod addresses an issue where the legacy Windows 10 taskbar, running inside a Windows 11
system, does not always redraw when the taskbar Search setting (hidden / icon / box) is changed.
It monitors the setting and triggers the taskbar to apply it immediately. This modification has
been tested on Windows 11 24H2.
Note: for a complete Windows 10 taskbar experience on Windows 11 24H2 / 25H2, install the
Windows 10 taskbar on Windows 11 24H2
mod first. That mod downloads and runs the Windows 10 explorer.exe (10.0.19039) as the shell;
this mod only works on top of that shell and does nothing on the stock Windows 11 taskbar.
How it works
- It monitors
HKCU\Software\Microsoft\Windows\CurrentVersion\Search\SearchboxTaskbarMode
(0 = hidden, 1 = icon, 2 = box, 3 = icon and label) via a registry notification, with a
one-second poll as a fallback in case a notification is missed.
- When the value changes, it sends
WM_SETTINGCHANGE with "TraySettings" to Shell_TrayWnd
and Shell_SecondaryTrayWnd of this process. This is the single method that reliably makes
the Windows 10 taskbar reload its settings, including the search mode, on shell build
10.0.19039. The message is sent twice with a short gap so a momentarily busy explorer still
catches it.
- The message is never broadcast system-wide: only the taskbar windows of this process are
targeted. No fake
SPI_SETWORKAREA and no UI Automation are used.
- The startup refresh is skipped on a normal explorer start (the taskbar reads the value itself
when it is created) and only runs when the mod is enabled while the taskbar is already running.
- Every refresh is written to the Windhawk log.
"Search icon and label" (approximation)
The Windows 10 taskbar only supports three states: hidden, icon, and box. "Search icon and label"
(value 3) is a Windows 11 option that the Windows 10 taskbar does not implement, so by default
selecting it changes nothing there. As the closest equivalent, this mod makes the taskbar interpret
value 3 as 2 (search box). This applies only to reads performed inside explorer.exe: the registry
value itself is never modified, and the Windows 11 Settings page continues to show the user's
choice. It is an approximation, not a true "icon and label" layout. It can be disabled with
labelAsBox.
Settings
labelAsBox: treat "Search icon and label" as the search box (see above).
Limitations
- This mod never restarts explorer and never writes to the registry. The "icon and label" mapping is
performed by adjusting the value as returned to explorer.exe (RegQueryValueExW / RegGetValueW);
if the taskbar reads the value by other means, the mapping will not take effect.
- The mod does nothing on the stock Windows 11 shell (build 22000+); it exits at load time.