]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/textctrl.cpp
Latest OS/2 compiler bug fixes for common and generic
[wxWidgets.git] / src / msw / textctrl.cpp
index 6770cc598c17317d9d26a356d1a8a0ca2818d729..fa88d2dc95537cbe8481ea33cd333ecfa974f5cc 100644 (file)
@@ -131,7 +131,9 @@ bool wxTextCtrl::Create(wxWindow *parent, wxWindowID id,
                       _T("wxTE_PROCESS_ENTER style is ignored for multiline "
                          "text controls (they always process it)") );
 
-        msStyle |= ES_MULTILINE | ES_WANTRETURN | WS_VSCROLL;
+        msStyle |= ES_MULTILINE | ES_WANTRETURN;
+        if ((m_windowStyle & wxTE_NO_VSCROLL) == 0)
+            msStyle |= WS_VSCROLL;
         m_windowStyle |= wxTE_PROCESS_ENTER;
     }
     else