[3/4] richedit: Clicking below end of text now selects closest character (try 2)

Dylan Smith dylan.ah.smith at gmail.com
Tue May 13 18:11:04 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: 0003-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/20080513/7cd53c11/attachment.diff 

More information about the wine-patches mailing list