CTreeCtrl::SetItemText
BOOL SetItemText( HTREEITEM hItem**, LPCTSTR** lpszItem );
Return Value
Nonzero if successful; otherwise 0.
Parameters
hItem
Handle of the item whose text is to be set.
lpszItem
Address of a string containing the new text for the item
Remarks
Sets the text of the item specified by hItem.
Example
// The pointer to my tree control.
extern CTreeCtrl* pmyTreeCtrl;
// The point to hit test.
extern CPoint myPoint;
// Clear the text of the item at point myPoint.
UINT uFlags;
HTREEITEM hItem = pmyTreeCtrl->HitTest(myPoint, &uFlags);
if ((hItem != NULL) && (TVHT_ONITEM & uFlags))
{
pmyTreeCtrl->SetItemText(hItem, NULL);
}
CTreeCtrl Overview | Class Members | Hierarchy Chart
See Also CTreeCtrl::GetItemText