Пример #1
0
void wxListBoxBase::InsertItems(int nItems, const wxString *items, int pos)
{
    wxArrayString aItems;
    for ( int n = 0; n < nItems; n++ )
    {
        aItems.Add(items[n]);
    }

    DoInsertItems(aItems, pos);
}
Пример #2
0
void wxListBox::DoSetItems( const wxArrayString& items,
                            void **clientData)
{
    Clear();

    DoInsertItems(items, 0);

    if ( clientData )
    {
        unsigned int count = items.GetCount();
        for ( unsigned int n = 0; n < count; n++ )
        {
            SetClientData(n, clientData[n]);
        }
    }
}