[PATCH] [RichEdit]: force window update when the word wrap option has changed
Eric Pouech
eric.pouech at orange.fr
Mon Apr 14 13:56:51 CDT 2008
A+
---
dlls/riched20/editor.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 3a7bc74..b09afa4 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -3226,7 +3226,12 @@ static LRESULT RichEditWndProc_common(HWND hWnd, UINT msg, WPARAM wParam,
case EM_SETTARGETDEVICE:
if (wParam == 0)
{
- editor->bWordWrap = (lParam == 0);
+ BOOL new = (lParam == 0);
+ if (editor->bWordWrap != new)
+ {
+ editor->bWordWrap = new;
+ ME_RewrapRepaint(editor);
+ }
}
else FIXME("Unsupported yet non NULL device in EM_SETTARGETDEVICE\n");
break;
More information about the wine-patches
mailing list