| commit | 5b809fd6d75b75cf9791458c26b2bd74ac3bf209 | [log] [tgz] | 
|---|---|---|
| author | Zoltan Nagy <nagyzoli@netelek.hu> | Tue Aug 27 18:15:26 2002 +0000 | 
| committer | Alexandre Julliard <julliard@winehq.org> | Tue Aug 27 18:15:26 2002 +0000 | 
| tree | 788e0d2d4c841038c76217f1d8260c279c3430cc | |
| parent | 9fee50e2e48f7283b2bcb4f4b445c29f8ddc942c [diff] | 
Move caret when selecting a text area with the mouse.
diff --git a/controls/edit.c b/controls/edit.c index 158ea83..36a387c 100644 --- a/controls/edit.c +++ b/controls/edit.c
@@ -4415,6 +4415,7 @@ es->region_posy = (prey < y) ? -1 : ((prey > y) ? 1 : 0); e = EDIT_CharFromPos(hwnd, es, x, y, &after_wrap); EDIT_EM_SetSel(hwnd, es, es->selection_start, e, after_wrap); + EDIT_SetCaretPos(hwnd,es,es->selection_end,es->flags & EF_AFTER_WRAP); return 0; }