fixes bug 414369

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-04-07 00:29:08 +00:00
parent f515c25a2c
commit 54081dc5c2
2 changed files with 8 additions and 0 deletions

View File

@@ -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)