CListBox::SetCurSel

This method selects a string and scroll it into view, if necessary. When the new string is selected, the list box removes the highlight from the previously selected string.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

int SetCurSel( int nSelect );

See Also

CListBox::GetCurSel