Udostępnij za pośrednictwem


CTreeCtrl::GetDropHilightItem

Call this function to retrieve the item that is the target of a drag-and-drop operation.

HTREEITEM GetDropHilightItem( ) const;

Return Value

The handle of the item dropped if successful; otherwise NULL.

Example

// Set the item at the point myPoint as the drop target.
UINT uFlags;
HTREEITEM hItem = m_TreeCtrl.HitTest(myPoint, &uFlags);

if ((hItem != NULL) && (TVHT_ONITEM & uFlags))
{
   m_TreeCtrl.SelectDropTarget(hItem);
   ASSERT(m_TreeCtrl.GetDropHilightItem() == hItem);
}

Requirements

Header: afxcmn.h

See Also

Reference

CTreeCtrl Class

Hierarchy Chart

CTreeCtrl::SelectDropTarget

Other Resources

CTreeCtrl Members