user32: Return some fake information for an inter-process GetWindowPlacement.

This commit is contained in:
Alexandre Julliard 2010-12-09 20:43:26 +01:00
parent 026d41c504
commit 1829fc51c1
1 changed files with 12 additions and 2 deletions

View File

@ -1229,8 +1229,18 @@ BOOL WINAPI GetWindowPlacement( HWND hwnd, WINDOWPLACEMENT *wndpl )
}
if (pWnd == WND_OTHER_PROCESS)
{
if (IsWindow( hwnd )) FIXME( "not supported on other process window %p\n", hwnd );
return FALSE;
if (!IsWindow( hwnd )) return FALSE;
FIXME( "not supported on other process window %p\n", hwnd );
/* provide some dummy information */
wndpl->length = sizeof(*wndpl);
wndpl->showCmd = SW_SHOWNORMAL;
wndpl->flags = 0;
wndpl->ptMinPosition.x = -1;
wndpl->ptMinPosition.y = -1;
wndpl->ptMaxPosition.x = -1;
wndpl->ptMaxPosition.y = -1;
GetWindowRect( hwnd, &wndpl->rcNormalPosition );
return TRUE;
}
/* update the placement according to the current style */