X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bada28f00f12666ef31f0543cea2cde86b7935c7..807a903e6807ae3e49928bda488a04bc0d832149:/src/msw/listbox.cpp diff --git a/src/msw/listbox.cpp b/src/msw/listbox.cpp index 19a8753d28..a2175877e7 100644 --- a/src/msw/listbox.cpp +++ b/src/msw/listbox.cpp @@ -157,6 +157,10 @@ bool wxListBox::Create(wxWindow *parent, DWORD wstyle = WS_VISIBLE | WS_VSCROLL | WS_TABSTOP | LBS_NOTIFY | LBS_HASSTRINGS /* | WS_CLIPSIBLINGS */; + + wxASSERT_MSG( !(style & wxLB_MULTIPLE) || !(style & wxLB_EXTENDED), + _T("only one of listbox selection modes can be specified") ); + if (m_windowStyle & wxLB_MULTIPLE) wstyle |= LBS_MULTIPLESEL; else if (m_windowStyle & wxLB_EXTENDED)