// implementation
// ============================================================================
-#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox, wxListBox)
-#endif
// ----------------------------------------------------------------------------
// declaration and implementation of wxCheckListBoxItem class
void wxCheckListBox::Delete(int N)
{
- wxCHECK_RET( N >= 0 && N < m_noItems,
+ wxCHECK_RET( N >= 0 && N < m_nNumItems,
wxT("invalid index in wxListBox::Delete") );
wxListBox::Delete(N);
// free memory
delete m_aItems[N];
- m_aItems.Remove(N);
+ m_aItems.RemoveAt(N);
}
void wxCheckListBox::InsertItems(int nItems, const wxString items[], int pos)
{
- wxCHECK_RET( pos >= 0 && pos <= m_noItems,
+ wxCHECK_RET( pos >= 0 && pos <= m_nNumItems,
wxT("invalid index in wxCheckListBox::InsertItems") );
wxListBox::InsertItems(nItems, items, pos);
*/
size_t nItem = 0;
- if ( nItem < (size_t)m_noItems )
+ if ( nItem < (size_t)m_nNumItems )
GetItem(nItem)->Toggle();
//else: it's not an error, just click outside of client zone
}