From ce192630a3904c76c6fdf0c318956aa2bd679643 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 23 Jun 2004 17:42:59 +0000 Subject: [PATCH] use ES_AUTOHSCROLL for multiline controls as well (fixes 966692) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/textctrl.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index c4c015a3df..25e2ec9055 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -461,7 +461,12 @@ WXDWORD wxTextCtrl::MSWGetStyle(long style, WXDWORD *exstyle) const if ( style & wxTE_DONTWRAP ) { // automatically scroll the control horizontally as necessary - msStyle |= WS_HSCROLL; + // + // NB: ES_AUTOHSCROLL is needed for richedit controls or they don't + // show horz scrollbar at all, even in spite of WS_HSCROLL, and as + // it doesn't seem to do any harm for plain edit controls, add it + // always + msStyle |= WS_HSCROLL | ES_AUTOHSCROLL; } if ( style & wxTE_READONLY ) -- 2.45.2