- InsertCommon( item, pos );
-}
-
-void wxComboBox::Insert( const wxString &item, int pos, void *clientData )
-{
- wxCHECK_RET(!(GetWindowStyle() & wxCB_SORT), wxT("can't insert into sorted list"));
- int count = GetCount();
- wxCHECK_RET((pos>=0) && (pos<=count), wxT("invalid index"));
- if (pos == count)
- {
- Append(item, clientData);
- return;
- }
-
- m_clientDataList.Insert( pos, (wxObject*) clientData );
- m_clientObjectList.Insert( pos, (wxObject*)NULL );
-
- InsertCommon( item, pos );
-}
-
-void wxComboBox::Insert( const wxString &item, int pos, wxClientData *clientData )
-{
- wxCHECK_RET(!(GetWindowStyle() & wxCB_SORT), wxT("can't insert into sorted list"));
- int count = GetCount();
- wxCHECK_RET((pos>=0) && (pos<=count), wxT("invalid index"));
- if (pos == count)
- {
- Append(item, clientData);
- return;
- }
-
- m_clientDataList.Insert( pos, (wxObject*) NULL );
- m_clientObjectList.Insert( pos, (wxObject*) clientData );