Partager via


CTreeCtrl::GetSelectedCount

Retrieves the number of selected items in the current tree-view control.

UINT GetSelectedCount();

Return Value

The number of selected items.

Remarks

This method sends the TVM_GETSELECTEDCOUNT message, which is described in the Windows SDK.

Requirements

Header: afxcmn.h

This method is supported in Windows Vista and later.

Additional requirements for this method are described in Build Requirements for Windows Vista Common Controls.

See Also

Concepts

CTreeCtrl Class

CTreeCtrl Members

Hierarchy Chart

TVM_GETSELECTEDCOUNT