- int i;
-
- wxCHECK_RET( nPos >= 0 && nPos <= m_nNumItems,
- wxT("invalid index in wxCheckListBox::InsertItems") );
-
- wxListBox::InsertItems( nItems
- ,asItems
- ,nPos
- );
- for (i = 0; i < nItems; i++)
- {
- wxOwnerDrawn* pNewItem = CreateItem((size_t)(nPos + i));
-
- pNewItem->SetName(asItems[i]);
- m_aItems.Insert(pNewItem, (size_t)(nPos + i));
- ::WinSendMsg( (HWND)GetHWND()
- ,LM_SETITEMHANDLE
- ,(MPARAM)(i + nPos)
- ,MPFROMP(pNewItem)
- );
- }
-} // end of wxCheckListBox::InsertItems
-
-bool wxCheckListBox::SetFont (
- const wxFont& rFont
-)
-{
- size_t i;
-
- for (i = 0; i < m_aItems.GetCount(); i++)