Let "info wnd" print the client rectangle in screen coordinates.

This commit is contained in:
Rein Klazes 2003-11-05 00:36:23 +00:00 committed by Alexandre Julliard
parent 4de17c3724
commit 8404438f71

View file

@ -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);