SetDropHighlight

Description

Highlights the specified item as the drop target.

Applies to

TreeView controls

Syntax

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


Return value

Integer.

Returns 1 if it succeeds and -1 if an error occurs.

Usage

Use in a drag operation to specify a drop target.

Examples

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)

See also

FindItem

SetItem