From 7887fa4046a2da9a83ec75b90c1c76aff4aecf16 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Fri, 22 Jun 2007 12:17:49 +0000 Subject: [PATCH] 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 --- src/generic/listctrl.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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