CComboBox::InsertString
int InsertString( int nIndex, LPCTSTR lpszString );
返回值:
返回插入项的下标。出错时返回CD_ERR。如果没有足够的内存插入项,则返回CB_ERRSPACE。
参数:
nIndex
指定项的插入位置(下标),如果为―1,则在列表的末尾插入该项。
lpszString
指向待插入的字符串(以null结尾)。
说明:
本函数在组合框的列表框中插入一个字符串。与成员函数AddString不同,它不会引起CBS_SORT风格的列表重新排序。
请参阅:
CComboBox::AddString
,
CComboBox::SelectString
,
CComboBox::ResetContent
, CB_INSERTSTRING