Alexandre Julliard : comdlg32: Fix incorrect use of the ScreenToClient function.

Alexandre Julliard julliard at winehq.org
Tue Oct 5 12:03:11 CDT 2010


Module: wine
Branch: master
Commit: 6d5bfce3eee9c957b4850780e96325bdf998d218
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6d5bfce3eee9c957b4850780e96325bdf998d218

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Oct  5 14:04:15 2010 +0200

comdlg32: Fix incorrect use of the ScreenToClient function.

---

 dlls/comdlg32/printdlg.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/comdlg32/printdlg.c b/dlls/comdlg32/printdlg.c
index 05d9401..d692e7d 100644
--- a/dlls/comdlg32/printdlg.c
+++ b/dlls/comdlg32/printdlg.c
@@ -3487,8 +3487,7 @@ static INT_PTR CALLBACK pagesetup_dlg_proc(HWND hDlg, UINT uMsg, WPARAM wParam,
         SetPropW(hDlg, pagesetupdlg_prop, data);
         SetPropW(hDrawWnd, pagesetupdlg_prop, data);
         GetWindowRect(hDrawWnd, &data->rtDrawRect); /* Calculating rect in client coordinates where paper draws */
-        ScreenToClient(hDlg, (LPPOINT)&data->rtDrawRect);
-        ScreenToClient(hDlg, (LPPOINT)(&data->rtDrawRect.right));
+        MapWindowPoints( 0, hDlg, (LPPOINT)&data->rtDrawRect, 2 );
         lpfnStaticWndProc = (WNDPROC)SetWindowLongPtrW(
             hDrawWnd,
             GWLP_WNDPROC,




More information about the wine-cvs mailing list