WM_QUERYOPEN and return FALSE
(Tested on Notepad on Windows 10, by subclassing it with a WH_GETMESSAGE hook (DLL)
Disabling a window from being activated by clicking in her taskbar button
Eliza
21
Reputation points
Would like to ask if someone know which message or function i could hook
to 'intercept' a window from being activated by clicking at her 'taskbar button'.
Im hooking explorer.exe
but i could not find any useful info yet.
Accepted answer
-
Castorix31 86,061 Reputation points
2021-09-12T18:28:46.333+00:00
1 additional answer
Sort by: Most helpful
-
Eliza 21 Reputation points
2021-09-12T18:42:49.567+00:00 Great! I had find that hooking
explorer.exe
messageSwitchToThisWindow
works. Its better to hook directly the target app than the taskbar.Do you also know how to avoid the taskbar window button from getting highlighted?