Share via


CTreeCtrl::GetDropHilightItem

Chiamare la funzione per recuperare l'elemento di destinazione un'operazione di trascinamento.

HTREEITEM GetDropHilightItem( ) const;

Valore restituito

Gli handle dell'elemento rilasciato in caso di esito positivo; in caso contrario NULL.

Esempio

// 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);
}

Requisiti

Header: afxcmn.h

Vedere anche

Riferimenti

Classe di CTreeCtrl

Grafico della gerarchia

CTreeCtrl::SelectDropTarget