mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:12:59 +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;
|
WINDOWPLACEMENT wpl;
|
||||||
|
|
||||||
|
wpl.length = sizeof(WINDOWPLACEMENT);
|
||||||
GetWindowPlacement(hwnd, &wpl);
|
GetWindowPlacement(hwnd, &wpl);
|
||||||
|
|
||||||
|
TRACE("GetWindowPlacement wpl.showCmd %d\n",wpl.showCmd);
|
||||||
if (wpl.showCmd == SW_SHOWMINIMIZED)
|
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); ?
|
BringWindowToTop(hwnd); // same as: SetWindowPos(hwnd,HWND_TOP,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE); ?
|
||||||
SetForegroundWindow(hwnd);
|
SetForegroundWindow(hwnd);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue