- return InsertCommon( item, pos );
-}
-
-int wxComboBox::Insert( const wxString &item, int pos, void *clientData )
-{
- int count = GetCount();
- wxCHECK_MSG( (pos >= 0) && (pos <= count), -1, wxT("invalid index") );
-
- if (pos == count)
- {
- return Append(item, clientData);
- }
-
- m_clientDataList.Insert( pos, (wxObject*) clientData );
- m_clientObjectList.Insert( pos, (wxObject*)NULL );
-
- return InsertCommon( item, pos );
-}
-
-int wxComboBox::Insert( const wxString &item, int pos, wxClientData *clientData )
-{
- int count = GetCount();
- wxCHECK_MSG( (pos >= 0) && (pos <= count), -1, wxT("invalid index") );
-
- if (pos == count)
- {
- return Append(item, clientData);
- }
-
- m_clientDataList.Insert( pos, (wxObject*) NULL );
- m_clientObjectList.Insert( pos, (wxObject*) clientData );