-void wxListBox::DoInsertItems(
- const wxArrayString& asItems
-, int nPos
-)
-{
- wxCHECK_RET( nPos >= 0 && nPos <= m_nNumItems,
- wxT("invalid index in wxListBox::InsertItems") );
-
- int nItems = asItems.GetCount();
-
- for (int i = 0; i < nItems; i++)
- {
- int nIndex = (int)::WinSendMsg( GetHwnd()
- ,LM_INSERTITEM
- ,MPFROMLONG((LONG)(i + nPos))
- ,(MPARAM)asItems[i].c_str()
- );
-
- wxOwnerDrawn* pNewItem = CreateItem(nIndex);
-
- pNewItem->SetName(asItems[i]);
- pNewItem->SetFont(GetFont());
- m_aItems.Insert(pNewItem, nIndex);
- ::WinSendMsg( GetHwnd()
- ,LM_SETITEMHANDLE
- ,(MPARAM)((SHORT)nIndex)
- ,MPFROMP(pNewItem)
- );
- m_nNumItems += nItems;
- }
-} // end of wxListBox::DoInsertItems
-
-void wxListBox::SetString(
- int N
-, const wxString& rsString
-)