Dylan Smith : richedit: Show caret after pasting or streaming in text.

Alexandre Julliard julliard at winehq.org
Thu Jun 26 14:50:29 CDT 2008


Module: wine
Branch: master
Commit: 6c2026a348b275e6524dab1b145e0fe4f5ccdbbd
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6c2026a348b275e6524dab1b145e0fe4f5ccdbbd

Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date:   Wed Jun 25 11:32:59 2008 -0400

richedit: Show caret after pasting or streaming in text.

There was a missing call to ShowCaret after the caret was created.

---

 dlls/riched20/editor.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 60db1bf..b9f41d2 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -1148,7 +1148,9 @@ static LRESULT ME_StreamIn(ME_TextEditor *editor, DWORD format, EDITSTREAM *stre
   if (!(format & SFF_SELECTION)) {
     ME_ClearTempStyle(editor);
   }
+  HideCaret(editor->hWnd);
   ME_MoveCaret(editor);
+  ShowCaret(editor->hWnd);
   ME_SendSelChange(editor);
   ME_SendRequestResize(editor, FALSE);
 




More information about the wine-cvs mailing list