From 2c738dd87ac62d3283c45f9eeac2341326b4d7dd Mon Sep 17 00:00:00 2001 From: "Unknown (MT)" Date: Mon, 13 Sep 1999 07:14:27 +0000 Subject: [PATCH] add wxTE_AUTO_SCROLL git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/textctrl.cpp | 3 +++ 1 file changed, 3 insertions(+) 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;