-void wxCheckListBox::DoInsertItems(const wxArrayString& items, unsigned int pos)
-{
- // pos is validated in wxListBox
- wxListBox::DoInsertItems( items, pos );
- unsigned int n = items.GetCount();
- for (unsigned int i = 0; i < n; i++)
- {
- wxOwnerDrawn* pNewItem = CreateItem((size_t)(pos + i));
-
- pNewItem->SetName(items[i]);
- m_aItems.Insert(pNewItem, (size_t)(pos + i));
- ::WinSendMsg( (HWND)GetHWND(),
- LM_SETITEMHANDLE,
- (MPARAM)(i + pos),
- MPFROMP(pNewItem)
- );
- }
-} // end of wxCheckListBox::InsertItems
-