// interface derived from wxListBox and lower classes
// --------------------------------------------------
-void wxCheckListBox::Clear()
+void wxCheckListBox::DoClear()
{
unsigned int n = GetCount();
while ( n > 0 )
{
n--;
- Delete(n);
+ DoDeleteOneItem(n);
}
- m_itemsClientData.Clear();
-
- wxCHECK_RET( n == GetCount(),
- _T("broken wxCheckListBox::Clear()") );
+ wxASSERT_MSG( IsEmpty(), _T("logic error in DoClear()") );
}
unsigned int wxCheckListBox::GetCount() const
unsigned int pos,
void **clientData, wxClientDataType type)
{
- ListView_SetItemCount( GetHwnd(), GetCount() + count );
-
const unsigned int count = items.GetCount();
+ ListView_SetItemCount( GetHwnd(), GetCount() + count );
+
int n = wxNOT_FOUND;
for( unsigned int i = 0; i < count; i++ )