From: Unknown (MT) Date: Mon, 13 Sep 1999 07:14:27 +0000 (+0000) Subject: add wxTE_AUTO_SCROLL X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2c738dd87ac62d3283c45f9eeac2341326b4d7dd add wxTE_AUTO_SCROLL git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index fa88d2dc95..5cc8e00a82 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -139,6 +139,9 @@ bool wxTextCtrl::Create(wxWindow *parent, wxWindowID id, else msStyle |= ES_AUTOHSCROLL; + if (m_windowStyle & wxHSCROLL) + msStyle |= (WS_HSCROLL | ES_AUTOHSCROLL); + if (m_windowStyle & wxTE_READONLY) msStyle |= ES_READONLY;