We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.


Retrieves the total number of selected items in a multiple-selection list box.

int GetSelCount( ) const;

The count of selected items in a list box. If the list box is a single-selection list box, the return value is LB_ERR.

See the example for CListBox::GetSelItems.

Header: afxwin.h