SelectString
int SelectString( int nStartAfter, LPCSTR lpcsz )
EX1
#include <..\OriginLab\DialogEx.h> #define IDC_COMBO1 1001 void ComboBox_SelectString_ex1(Dialog& MyDlg) { ComboBox m_cmbBox = MyDlg.GetItem(IDC_COMBO1); int nSel = m_cmbBox.SelectString(0, "try"); }
Control.h