Author: jimtabor Date: Sat Dec 10 07:00:09 2011 New Revision: 54635
URL: http://svn.reactos.org/svn/reactos?rev=54635&view=rev Log: - Fix make window active so to restore window.
Modified: trunk/reactos/dll/win32/user32/controls/appswitch.c
Modified: trunk/reactos/dll/win32/user32/controls/appswitch.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/controls/a... ============================================================================== --- trunk/reactos/dll/win32/user32/controls/appswitch.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/user32/controls/appswitch.c [iso-8859-1] Sat Dec 10 07:00:09 2011 @@ -52,10 +52,12 @@ { WINDOWPLACEMENT wpl;
+ wpl.length = sizeof(WINDOWPLACEMENT); GetWindowPlacement(hwnd, &wpl); - + + TRACE("GetWindowPlacement wpl.showCmd %d\n",wpl.showCmd); if (wpl.showCmd == SW_SHOWMINIMIZED) - ShowWindow(hwnd, SW_RESTORE); + ShowWindowAsync(hwnd, SW_RESTORE);
BringWindowToTop(hwnd); // same as: SetWindowPos(hwnd,HWND_TOP,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE); ? SetForegroundWindow(hwnd);