TreeView::GetSelectedItem
long GetSelectedItem (long tvItem = RootItem) const;
Parameters
- tvItem
ID of the tree view item where the search begins. Use RootItem to search from the root of the tree view. For single-selection tree views this parameter is ignored.
Return Value
For multiple-selection tree views, the ID of the first selected item after treeItem, including the
starting item, too. If there is no such selected item, the function returns NoItem.
If the function parameters are incorrect, NoItem is returned.