Compartir a través de


CTreeCtrl::SelectDropTarget

Llame a esta función para actualizar el elemento en el estilo usado para indicar el destino de una operación de arrastrar y colocar.

BOOL SelectDropTarget(
   HTREEITEM hItem 
);

Parámetros

  • hItem
    Identificador de un elemento de árbol.

Valor devuelto

Distinto de cero si correctamente; si no 0.

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::SelectItem

CTreeCtrl::GetDropHilightItem

CTreeCtrl::CreateDragImage