Module: wine Branch: master Commit: 328a3f1d8c7e254ab003bd22ad52251d8591ed8e URL: http://source.winehq.org/git/wine.git/?a=commit;h=328a3f1d8c7e254ab003bd22ad...
Author: Dylan Smith dylan.ah.smith@gmail.com Date: Wed Jul 28 21:17:13 2010 -0400
richedit: EN_UPDATE notification is sent on WM_PAINT.
---
dlls/riched20/editor.c | 2 ++ dlls/riched20/paint.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 14ae16b..7e3dfda 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -4421,6 +4421,8 @@ static LRESULT RichEditWndProc_common(HWND hWnd, UINT msg, WPARAM wParam, PAINTSTRUCT ps;
hDC = BeginPaint(editor->hWnd, &ps); + if (!editor->bEmulateVersion10 || (editor->nEventMask & ENM_UPDATE)) + ME_SendOldNotify(editor, EN_UPDATE); /* Erase area outside of the formatting rectangle */ if (ps.rcPaint.top < editor->rcFormat.top) { diff --git a/dlls/riched20/paint.c b/dlls/riched20/paint.c index fc52afb..0a32601 100644 --- a/dlls/riched20/paint.c +++ b/dlls/riched20/paint.c @@ -129,8 +129,6 @@ void ME_Repaint(ME_TextEditor *editor) ME_UpdateScrollBar(editor); FIXME("ME_Repaint had to call ME_WrapMarkedParagraphs\n"); } - if (!editor->bEmulateVersion10 || (editor->nEventMask & ENM_UPDATE)) - ME_SendOldNotify(editor, EN_UPDATE); ITextHost_TxViewChange(editor->texthost, TRUE); }