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
This commit is contained in:
Vadim Zeitlin 2004-06-23 17:42:59 +00:00
parent 0b90bda36a
commit ce192630a3

View File

@ -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 )