[8/44] richedit: Clicking below end of text now selects closest character

Dylan Smith dylan.ah.smith at gmail.com
Tue Jun 17 20:18:46 CDT 2008


Before the end of the text was selected when clicking below the end of
the text, rather than using the x position to find the appropriate
character on the last row that is closest to the pixel position.

This behaviour was observed in wordpad on Windows XP, and EM_CHARFROMPOS
is documented on MSDN as getting information about the character closest
to a specified point.  This behaviour is further demonstrated by the added test.
---
 dlls/riched20/caret.c        |   14 ++++++++++++++
 dlls/riched20/tests/editor.c |   19 +++++++++++++++++++
 2 files changed, 33 insertions(+), 0 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-richedit-Clicking-below-end-of-text-now-selects-clos.diff
Type: text/x-diff
Size: 1871 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080617/4ed5681b/attachment.diff 


More information about the wine-patches mailing list