[1/2] richedit: Move implementation of EM_GETTEXTRANGE to its own function.

Dylan Smith dylan.ah.smith at gmail.com
Tue Dec 16 02:43:13 CST 2008


The RichEditWndProc_common function is big enough already by handling
all the window messages, so moving code to handle a message to its own
function makes the code more readable.

This also allows other parts of the code to call the function rather
than having to use SendMessage or call RichEditWndProc_common directly.
This will remove the overhead in making these calls, and remove the
dependance on the window handle which will not be available for
windowless richedit controls.
---
 dlls/riched20/editor.c |   36 +++++++++++++++++++++---------------
 1 files changed, 21 insertions(+), 15 deletions(-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-richedit-Move-implementation-of-EM_GETTEXTRANGE.diff.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20081216/7a9321fa/attachment.txt 


More information about the wine-patches mailing list