CTreeCtrl::GetDropHilightItem
Call this function to retrieve the item that is the target of a drag-and-drop operation.
HTREEITEM GetDropHilightItem( ) const;
Возвращаемое значение
The handle of the item dropped if successful; otherwise NULL.
Пример
// 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);
}
Требования
Header: afxcmn.h