Eric Pouech : richedit: Fixed the initialization of the word wrap mode.

Alexandre Julliard julliard at winehq.org
Mon Mar 24 07:54:58 CDT 2008


Module: wine
Branch: master
Commit: 8b6eea0a630014842f36a176a61cdb61b95b1602
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8b6eea0a630014842f36a176a61cdb61b95b1602

Author: Eric Pouech <eric.pouech at orange.fr>
Date:   Sun Mar 23 08:06:33 2008 +0100

richedit: Fixed the initialization of the word wrap mode.

---

 dlls/riched20/editor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 54fd4a3..091cdac 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -1602,7 +1602,7 @@ ME_TextEditor *ME_MakeEditor(HWND hWnd) {
   ed->nLastSelStart = ed->nLastSelEnd = 0;
   ed->pLastSelStartPara = ed->pLastSelEndPara = ME_FindItemFwd(ed->pBuffer->pFirst, diParagraph);
   ed->bRedraw = TRUE;
-  ed->bWordWrap = FALSE;
+  ed->bWordWrap = (GetWindowLongW(hWnd, GWL_STYLE) & WS_HSCROLL) ? FALSE : TRUE;
   ed->bHideSelection = FALSE;
   ed->nInvalidOfs = -1;
   ed->pfnWordBreak = NULL;




More information about the wine-cvs mailing list