[1/5] richedit: EN_UPDATE notification is sent on WM_PAINT.
Dylan Smith
dylan.ah.smith at gmail.com
Wed Jul 28 20:17:13 CDT 2010
---
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);
}
--
1.7.0.4
More information about the wine-patches
mailing list