BOOL SelectDropTarget( HTREEITEM hItem );
Return Value
Nonzero if successful; otherwise 0.
Parameters
hItem
Handle of a tree item.
Remarks
Call this function to redraw the item in the style used to indicate the target of a drag-and-drop operation.
Example
// The pointer to my tree control.
extern CTreeCtrl* pmyTreeCtrl;
// The point to test.
extern CPoint myPoint;
// Set the item at the point myPoint as the drop target.
UINT uFlags;
HTREEITEM hItem = pmyTreeCtrl->HitTest(myPoint, &uFlags);
if ((hItem != NULL) && (TVHT_ONITEM & uFlags))
{
pmyTreeCtrl->SelectDropTarget(hItem);
}
CTreeCtrl Overview | Class Members | Hierarchy Chart
See Also CTreeCtrl::SelectItem, CTreeCtrl::GetDropHilightItem, CTreeCtrl::CreateDragImage