mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 09:13:39 +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 a new issue