This member function adds a string to the list box of a combo box. If the list box was not created with the CBS_SORT style, the string is added to the end of the list. Otherwise, the string is inserted into the list, and the list is sorted.
To insert a string into a specific location within the list, use the InsertString member function.
int AddString( LPCTSTR lpszString );
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
CComboBox Overview, CComboBox Member Functions, Control Classes, CComboBox::InsertString, CComboBox::DeleteString