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