mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +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.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;
|
||||
|
|
Loading…
Reference in a new issue