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.
Call this function to select the given tree view item.
BOOL SelectItem(
HTREEITEM hItem
);
Parameters
- hItem
Handle of a tree item.
Return Value
Nonzero if successful; otherwise 0.
Remarks
If hItem is NULL, then this function selects no item.
Example
// Select the item that is at the point myPoint.
UINT uFlags;
HTREEITEM hItem = m_TreeCtrl.HitTest(myPoint, &uFlags);
if ((hItem != NULL) && (TVHT_ONITEM & uFlags))
{
m_TreeCtrl.SelectItem(hItem);
}
Requirements
Header: afxcmn.h