[4/6] richedit: Implemented paragraph selection

Dylan Smith dylan.ah.smith at gmail.com
Sat Jul 5 03:24:09 CDT 2008


Paragraphs can be selected in native richedit controls by double
clicking on the selection bar.  This patch implements that behaviour.

I tried to take advantage of some of the similarities between selecting
lines and selecting paragraphs, so refactored the code to take advantage
of these similarities.  ME_LButtonDown should now be easier to read
since a lot of the code has been moved to ME_SelectByType.
---
 dlls/riched20/caret.c   |  101 ++++++++++++++++++++++++++++++----------------
 dlls/riched20/editor.h  |    2 +-
 dlls/riched20/editstr.h |    3 +-
 3 files changed, 69 insertions(+), 37 deletions(-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0004-richedit-Implemented-paragraph-selection.diff.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20080705/a2792449/attachment-0001.txt 


More information about the wine-patches mailing list