From: Robin Dunn Date: Mon, 13 Nov 2006 18:09:21 +0000 (+0000) Subject: Don't use wxLB_EXTENDED with the checklistbox X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/cb5d54ff9e5fac3920f2ec8bd7e9c8e9fa661b49 Don't use wxLB_EXTENDED with the checklistbox git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/choicdgg.cpp b/src/generic/choicdgg.cpp index 058ef02ac2..f36e0b2b75 100644 --- a/src/generic/choicdgg.cpp +++ b/src/generic/choicdgg.cpp @@ -435,10 +435,17 @@ bool wxMultiChoiceDialog::Create( wxWindow *parent, long style, const wxPoint& pos ) { + long styleLbox; +#if wxUSE_CHECKLISTBOX + styleLbox = wxLB_ALWAYS_SB; +#else + styleLbox = wxLB_ALWAYS_SB | wxLB_EXTENDED; +#endif + if ( !wxAnyChoiceDialog::Create(parent, message, caption, n, choices, style, pos, - wxLB_ALWAYS_SB | wxLB_EXTENDED) ) + styleLbox) ) return false; return true;