Compartilhar via


CListBox::GetSelCount

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

int GetSelCount( ) const;

Return Value

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.

Example

See the example for CListBox::GetSelItems.

Requirements

Header: afxwin.h

See Also

Reference

CListBox Class

Hierarchy Chart

CListBox::SetSel

LB_GETSELCOUNT