2.2.6.19.17 ListBox::SetCurSel

Description

Syntax

void SetCurSel( int nSelect )

Parameters

nSelect

Return

Examples

EX1

#include <..\OriginLab\DialogEx.h>   // Dialog class
#define IDC_LIST1 1001

void ListBox_SetCurSel(Dialog& MyDlg)
{
	ListBox  m_List = MyDlg.GetItem(IDC_LIST1);    
	m_List.SetCurSel(1);
}

Remark

See Also

Header to Include

Control.h