Share via


CTreeCtrl::GetDropHilightItem

Llame a esta función para recuperar el elemento de destino de una operación de arrastrar y colocar.

HTREEITEM GetDropHilightItem( ) const;

Valor devuelto

El identificador de elemento quitado si correctamente; si no NULL.

Ejemplo

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

Requisitos

encabezado: afxcmn.h

Vea también

Referencia

Clase de CTreeCtrl

Gráfico de jerarquía

CTreeCtrl::SelectDropTarget