mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-25 01:57:47 +01:00
copy code from SetWindowPos
This commit is contained in:
parent
b38aeb30ae
commit
987b489a4c
@ -797,7 +797,7 @@ BOOL WINAPI fake_GetWindowPlacement(HWND hWnd, WINDOWPLACEMENT* lpwndpl)
|
|||||||
lpwndpl->rcNormalPosition.right = g_ddraw.width;
|
lpwndpl->rcNormalPosition.right = g_ddraw.width;
|
||||||
lpwndpl->rcNormalPosition.top = 0;
|
lpwndpl->rcNormalPosition.top = 0;
|
||||||
}
|
}
|
||||||
else if (!(real_GetWindowLongA(hWnd, GWL_STYLE) & WS_CHILD))
|
else if (!IsChild(g_ddraw.hwnd, hWnd) && !(real_GetWindowLongA(hWnd, GWL_STYLE) & WS_CHILD))
|
||||||
{
|
{
|
||||||
real_MapWindowPoints(HWND_DESKTOP, g_ddraw.hwnd, (LPPOINT)&lpwndpl->rcNormalPosition, 2);
|
real_MapWindowPoints(HWND_DESKTOP, g_ddraw.hwnd, (LPPOINT)&lpwndpl->rcNormalPosition, 2);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user