mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Properly return window state
svn path=/trunk/; revision=18835
This commit is contained in:
parent
98191672ef
commit
6d06d18b14
1 changed files with 17 additions and 1 deletions
|
@ -3554,7 +3554,23 @@ NtUserGetWindowPlacement(HWND hWnd,
|
||||||
}
|
}
|
||||||
|
|
||||||
Safepl.flags = 0;
|
Safepl.flags = 0;
|
||||||
Safepl.showCmd = ((Window->Flags & WINDOWOBJECT_RESTOREMAX) ? SW_MAXIMIZE : SW_SHOWNORMAL);
|
if (0 == (Window->Style & WS_VISIBLE))
|
||||||
|
{
|
||||||
|
Safepl.showCmd = SW_HIDE;
|
||||||
|
}
|
||||||
|
else if (0 != (Window->Flags & WINDOWOBJECT_RESTOREMAX) ||
|
||||||
|
0 != (Window->Style & WS_MAXIMIZE))
|
||||||
|
{
|
||||||
|
Safepl.showCmd = SW_MAXIMIZE;
|
||||||
|
}
|
||||||
|
else if (0 != (Window->Style & WS_MINIMIZE))
|
||||||
|
{
|
||||||
|
Safepl.showCmd = SW_MINIMIZE;
|
||||||
|
}
|
||||||
|
else if (0 != (Window->Style & WS_MINIMIZE))
|
||||||
|
{
|
||||||
|
Safepl.showCmd = SW_SHOWNORMAL;
|
||||||
|
}
|
||||||
|
|
||||||
Size.x = Window->WindowRect.left;
|
Size.x = Window->WindowRect.left;
|
||||||
Size.y = Window->WindowRect.top;
|
Size.y = Window->WindowRect.top;
|
||||||
|
|
Loading…
Reference in a new issue