2.2.6.6.8 ComboBox::GetCurSel

Description

Syntax

int GetCurSel( )const

Parameters

Return

Examples

EX1

#include <..\OriginLab\DialogEx.h>
 
#define IDC_COMBO1  1001
void ComboBox_GetCurSel_ex1(Dialog& MyDlg)
{
	ComboBox  m_cmbBox = MyDlg.GetItem(IDC_COMBO1);
	int nSel = 3;
	m_cmbBox.SetCurSel( nSel );
	ASSERT( 3 == m_cmbBox.GetCurSel() );
}

Remark

See Also

Header to Include

Control.h