The LVM_GETSELECTEDCOUNT message determines the number of selected items in a list view control. You can send this message explicitly or by using the ListView_GetSelectedCount macro.
LVM_GETSELECTEDCOUNT
wParam = 0;
lParam = 0;
Return Values
Returns the number of selected items.
See Also