mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 13:10:28 +00:00
Let "info wnd" print the client rectangle in screen coordinates.
This commit is contained in:
parent
4de17c3724
commit
8404438f71
@ -391,7 +391,8 @@ void DEBUG_InfoWindow(HWND hWnd)
|
||||
strcpy(clsName, "-- Unknown --");
|
||||
if (!GetWindowText(hWnd, wndName, sizeof(wndName)))
|
||||
strcpy(wndName, "-- Empty --");
|
||||
if (!GetClientRect(hWnd, &clientRect))
|
||||
if (!GetClientRect(hWnd, &clientRect) ||
|
||||
!MapWindowPoints( hWnd, 0, (LPPOINT) &clientRect, 2))
|
||||
SetRectEmpty(&clientRect);
|
||||
if (!GetWindowRect(hWnd, &windowRect))
|
||||
SetRectEmpty(&windowRect);
|
||||
|
Loading…
Reference in New Issue
Block a user