mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
- Fix make window active so to restore window.
svn path=/trunk/; revision=54635
This commit is contained in:
parent
9adebc4bec
commit
64e13bde73
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue