From 8404438f71fd5d27f8072de9488db902c490297b Mon Sep 17 00:00:00 2001 From: Rein Klazes Date: Wed, 5 Nov 2003 00:36:23 +0000 Subject: [PATCH] Let "info wnd" print the client rectangle in screen coordinates. --- programs/winedbg/info.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/programs/winedbg/info.c b/programs/winedbg/info.c index fb673c38726..7a960a72115 100644 --- a/programs/winedbg/info.c +++ b/programs/winedbg/info.c @@ -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); -- 2.11.4.GIT