HTREEITEM GetPrevSiblingItem( HTREEITEM hItem );
Return Value
The handle of the previous sibling; otherwise NULL.
Parameters
hItem
Handle of a tree item.
Remarks
Call this function to retrieve the previous sibling of hItem.
Example
// The pointer to my tree control.
extern CTreeCtrl* pmyTreeCtrl;
// The item whose previous siblings will be displayed in bold.
extern HTREEITEM hmyItem;
// Show all of the previous siblings of hmyItem in bold.
HTREEITEM hItem = hmyItem;
while (hItem != NULL)
{
pmyTreeCtrl->SetItemState(hItem, TVIS_BOLD, TVIS_BOLD);
hItem = pmyTreeCtrl->GetPrevSiblingItem(hItem);
}
CTreeCtrl Overview | Class Members | Hierarchy Chart
See Also CTreeCtrl::GetNextSiblingItem, CTreeCtrl::GetParentItem, CTreeCtrl::GetChildItem