How about getting the next window in z-order by using GetWindow() & GW_HWNDNEXT and call SetFocus() on that?
-SM
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have the HWND to a window. If it has the focus, I want it to lose the focus. I don't mind where the focus goes. Is there anyway I can do that using win32? Thanks.
How about getting the next window in z-order by using GetWindow() & GW_HWNDNEXT and call SetFocus() on that?
-SM
Maybe you mean CreateWindowEx(WS_EX_NOACTIVATE, ...)
?