git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34675
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// when calling the base window Create().
wxWindowBase::SetWindowStyleFlag(style);
// when calling the base window Create().
wxWindowBase::SetWindowStyleFlag(style);
- // if we should always have a vertical scrollbar, do show it
- if ( style & wxALWAYS_SHOW_SB )
+ // if we allow or should always have a vertical scrollbar, make it
+ if ( style & wxVSCROLL || style & wxALWAYS_SHOW_SB )
{
#if wxUSE_TWO_WINDOWS
SetInsertIntoMain( true );
{
#if wxUSE_TWO_WINDOWS
SetInsertIntoMain( true );
- // if we should always have a horizontal scrollbar, do show it
+ // if we should allow a horizontal scrollbar, make it
if ( style & wxHSCROLL )
{
#if wxUSE_TWO_WINDOWS
if ( style & wxHSCROLL )
{
#if wxUSE_TWO_WINDOWS