CListBox.GetSelCountmethod
Gets the total number of selected items in a multiple-selection list box.
Syntax
FUNCTION GetSelCount (BYVAL hListBox AS HWND) AS LONG
Return value
The return value is the count of selected items in the list box. If the list box is a single-selection list box, the return value is LB_ERR.
Description
Gets the total number of selected items in a multiple-selection list box.
Example
DIM count AS LONG = CListBox.GetSelCount(hListBox)
Reference
- Include file
CListBox.inc - Defined in AfxNova/CListBox.inc:328
- Documented in Windows/WIndows Controls/CListBox Class.md
- Topic: CListBox Class