richedit: Force window update when the word wrap option has changed.

This commit is contained in:
Eric Pouech 2008-04-14 20:56:51 +02:00 committed by Alexandre Julliard
parent baded8789d
commit 296a59da7e
1 changed files with 6 additions and 1 deletions

View File

@ -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;