Dylan Smith : richedit: ES_AUTOHSCROLL window style disables word wrapping.

Alexandre Julliard julliard at winehq.org
Mon Oct 6 09:35:12 CDT 2008


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

Author: Dylan Smith <dylan.ah.smith at 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;




More information about the wine-cvs mailing list