Properly return window state

svn path=/trunk/; revision=18835
This commit is contained in:
Gé van Geldorp 2005-10-28 18:48:23 +00:00
parent 98191672ef
commit 6d06d18b14

View file

@ -3554,7 +3554,23 @@ NtUserGetWindowPlacement(HWND hWnd,
}
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.y = Window->WindowRect.top;