2.2.6.6.13 ComboBox::SelectString

Description

Syntax

int SelectString( int nStartAfter, LPCSTR lpcsz )

Parameters

nStartAfter
lpcsz

Return

Examples

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");
}

Remark

See Also

Header to Include

Control.h