From 4785c2fa2d8c62c77a9f5a4d2dd6547ce871278a Mon Sep 17 00:00:00 2001 From: Dylan Smith Date: Fri, 3 Oct 2008 18:28:34 -0400 Subject: [PATCH] richedit: ES_AUTOHSCROLL window style disables word wrapping. --- dlls/riched20/editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index f3046c9cb11..608be01672a 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -2210,7 +2210,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 = (GetWindowLongW(hWnd, GWL_STYLE) & WS_HSCROLL) ? FALSE : TRUE; + ed->bWordWrap = (GetWindowLongW(hWnd, GWL_STYLE) & (WS_HSCROLL|ES_AUTOHSCROLL)) ? FALSE : TRUE; ed->bHideSelection = FALSE; ed->nInvalidOfs = -1; ed->pfnWordBreak = NULL;