Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the number of selected items in the list view control.
UINT GetSelectedCount( ) const;
Return Value
The number of selected items in the list view control.
Example
     UINT i, uSelectedCount = m_myListCtrl.GetSelectedCount();
        int  nItem = -1;
        // Update all of the selected items. 
        if (uSelectedCount > 0)
        {
            for (i=0; i < uSelectedCount; i++)
            {
                nItem = m_myListCtrl.GetNextItem(nItem, LVNI_SELECTED);
                ASSERT(nItem != -1);
                m_myListCtrl.Update(nItem); 
            }
        }
Requirements
Header: afxcmn.h