Highlights the specified item as the drop target.
TreeView controls
treeviewname.SetDropHighlight ( itemhandle )
Argument |
Description |
---|---|
treeviewname |
The TreeView control in which you want to highlight an item as the target of a drag-and-drop operation |
itemhandle |
The handle of the item you want to highlight as the target in a drag-and-drop operation |
Integer. Returns 1 if it succeeds and -1 if an error occurs.
Use in a drag operation to specify a drop target.
This example uses the TreeView Clicked event to set the current TreeView item as the drop target:
handle = tv_list.FindItem(CurrentTreeItem!,0)
tv_list.SetDropHighlight(handle)