richedit: Use ME_EnsureVisible to implement EM_SCROLLCARET.

Dylan Smith dylan.ah.smith at
Mon Dec 15 03:31:43 CST 2008

The code for the ME_EnsureVisible function does exactly what
EM_SCROLLCARET does, yet this code is duplicated in order to handle this
message.  It is simpler to just use the existing function to implement
the message, and avoid internally sending the EM_SCROLLCARET when this
function is available.
 dlls/riched20/caret.c  |   12 +++---------
 dlls/riched20/editor.c |   17 +----------------
 2 files changed, 4 insertions(+), 25 deletions(-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-richedit-Use-ME_EnsureVisible-to-implement-EM_SC.diff.txt

More information about the wine-patches mailing list