Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Call this function to redraw the item in the style used to indicate the target of a drag-and-drop operation.
BOOL SelectDropTarget(
HTREEITEM hItem
);
Parameters
- hItem
Handle of a tree item.
Return Value
Nonzero if successful; otherwise 0.
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