Skip to content
Snippets Groups Projects
Commit 8623fdc2 authored by Francis Beaudet's avatar Francis Beaudet Committed by Alexandre Julliard
Browse files

If the window is already the topmost window in ShowWindow(SW_SHOW), it

must not be activated.
parent 34264f26
No related branches found
No related tags found
No related merge requests found
......@@ -1331,6 +1331,15 @@ BOOL WINAPI ShowWindow( HWND hwnd, INT cmd )
/* fall through */
case SW_SHOW:
swp |= SWP_SHOWWINDOW | SWP_NOSIZE | SWP_NOMOVE;
/*
* ShowWindow has a little peculiar behavior that if the
* window is already the topmost window, it will not
* activate it.
*/
if (GetTopWindow((HWND)0)==hwnd)
swp |= SWP_NOACTIVATE;
break;
case SW_SHOWNOACTIVATE:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment