user32: Bring SwitchToThisWindow a bit more in line with the now documented behavior.

This commit is contained in:
Alexandre Julliard 2009-08-31 16:37:19 +02:00
parent 6eabce171e
commit b464f9cacb
1 changed files with 3 additions and 2 deletions

View File

@ -85,9 +85,10 @@ typedef struct
/*********************************************************************** /***********************************************************************
* SwitchToThisWindow (USER32.@) * SwitchToThisWindow (USER32.@)
*/ */
void WINAPI SwitchToThisWindow( HWND hwnd, BOOL restore ) void WINAPI SwitchToThisWindow( HWND hwnd, BOOL alt_tab )
{ {
ShowWindow( hwnd, restore ? SW_RESTORE : SW_SHOWMINIMIZED ); if (IsIconic( hwnd )) ShowWindow( hwnd, SW_RESTORE );
else BringWindowToTop( hwnd );
} }