m_noItems--;
SetHorizontalExtent(wxEmptyString);
+
+ UpdateOldSelections();
}
int wxListBox::FindString(const wxString& s, bool bCase) const
m_noItems = 0;
SetHorizontalExtent();
+
+ UpdateOldSelections();
}
void wxListBox::Free()
{
SendMessage(GetHwnd(), LB_SETCURSEL, select ? N : -1, 0);
}
+
+ UpdateOldSelections();
}
bool wxListBox::IsSelected(int N) const
SetHorizontalExtent();
+ UpdateOldSelections();
+
return n;
}
bool wxListBox::MSWCommand(WXUINT param, WXWORD WXUNUSED(id))
{
+ if ((param == LBN_SELCHANGE) && HasMultipleSelection())
+ {
+ CalcAndSendEvent();
+ return true;
+ }
+
wxEventType evtType;
if ( param == LBN_SELCHANGE )
{
event.SetClientData( GetClientData(n) );
event.SetString(GetString(n));
- event.SetExtraLong( HasMultipleSelection() ? IsSelected(n) : true );
+ }
+ else
+ {
+ return false;
}
event.SetInt(n);