[PATCH] [RichEdit]: fixed the initialization of the word wrap mode
Eric Pouech
eric.pouech at orange.fr
Sun Mar 23 02:06:33 CDT 2008
(reported by Andrew Talbot, partial fix to #12098)
resending as the changelog entry was obviously *WRONG*
A+
---
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 4a810b0..acd0bac 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -1601,7 +1601,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-patches
mailing list