- Fix make window active so to restore window.

svn path=/trunk/; revision=54635
This commit is contained in:
James Tabor 2011-12-10 07:00:09 +00:00
parent 9adebc4bec
commit 64e13bde73

View file

@ -52,10 +52,12 @@ void MakeWindowActive(HWND hwnd)
{
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);