Only apply wxALWAYS_SHOW_SB to main window in wxListCtrl.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2007-06-22 12:17:49 +00:00
parent 3cfd8e8730
commit 7887fa4046

View File

@@ -4967,7 +4967,11 @@ bool wxGenericListCtrl::Create(wxWindow *parent,
style = style | wxLC_LIST; 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; return false;
// don't create the inner window with the border // don't create the inner window with the border