diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index a4525e2efc..d0efd9620e 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -4967,7 +4967,11 @@ bool wxGenericListCtrl::Create(wxWindow *parent, style = style | wxLC_LIST; } - if ( !wxControl::Create( parent, id, pos, size, style, validator, name ) ) + // add more styles here that should only appear + // in the main window + unsigned long only_main_window_style = wxALWAYS_SHOW_SB; + + if ( !wxControl::Create( parent, id, pos, size, style & ~only_main_window_style, validator, name ) ) return false; // don't create the inner window with the border