Module: wine Branch: master Commit: 4785c2fa2d8c62c77a9f5a4d2dd6547ce871278a URL: http://source.winehq.org/git/wine.git/?a=commit;h=4785c2fa2d8c62c77a9f5a4d2d...
Author: Dylan Smith dylan.ah.smith@gmail.com Date: Fri Oct 3 18:28:34 2008 -0400
richedit: ES_AUTOHSCROLL window style disables word wrapping.
---
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 f3046c9..608be01 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;