richedit: Clicking below end of text now selects closest character

Dylan Smith dylan.ah.smith at gmail.com
Fri Jun 27 08:18:39 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 --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-richedit-Clicking-below-end-of-text-now-selects.diff.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20080627/43e3298b/attachment.txt 


More information about the wine-patches mailing list