richedit: Fixed the initialization of the word wrap mode.
authorEric Pouech <eric.pouech@orange.fr>
Sun, 23 Mar 2008 07:06:33 +0000 (08:06 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 24 Mar 2008 11:12:07 +0000 (12:12 +0100)
dlls/riched20/editor.c

index 54fd4a3a6a676dd85eb3b8a8336a5e6b9e11389f..091cdacb38b7fdb04d2cfc5d46ad6d9979a1186b 100644 (file)
@@ -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;