Eric Pouech : richedit: Force window update when the word wrap option has changed.
Alexandre Julliard
julliard at winehq.org
Mon Apr 14 17:20:49 CDT 2008
Module: wine
Branch: master
Commit: 296a59da7e03553f05916a211c5bc5d1d5a1fa68
URL: http://source.winehq.org/git/wine.git/?a=commit;h=296a59da7e03553f05916a211c5bc5d1d5a1fa68
Author: Eric Pouech <eric.pouech at orange.fr>
Date: Mon Apr 14 20:56:51 2008 +0200
richedit: Force window update when the word wrap option has changed.
---
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 39827bc..7eaf769 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -3207,7 +3207,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-cvs
mailing list