Aric Stewart : user32: Points for IMR_QUERYCHARPOSITION need to be in screen coordinates.

Alexandre Julliard julliard at winehq.org
Wed May 15 14:20:00 CDT 2013


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

Author: Aric Stewart <aric at codeweavers.com>
Date:   Wed May 15 12:40:43 2013 -0500

user32: Points for IMR_QUERYCHARPOSITION need to be in screen coordinates.

Found by Ken Thomases.

---

 dlls/user32/edit.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c
index 1ce79db..126ab12 100644
--- a/dlls/user32/edit.c
+++ b/dlls/user32/edit.c
@@ -5182,6 +5182,8 @@ LRESULT EditWndProc_common( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, B
                         chpos->pt.y = HIWORD(pos);
                         chpos->cLineHeight = es->line_height;
                         chpos->rcDocument = es->format_rect;
+                        MapWindowPoints(hwnd, 0, &chpos->pt, 1);
+                        MapWindowPoints(hwnd, 0, (POINT*)&chpos->rcDocument, 2);
                         result = 1;
                         break;
                     }




More information about the wine-cvs mailing list