WinXTreeView_CopyItem


hItem = WinXTreeView_CopyItem (hTreeView, hParentItem, hItemInsertAfter, hItem)

Copies an item, and all it's children then inserts it back into the tree view control

Parameter Description
hTreeView The handle to the tree view control
hParentItem The handle to the parent item for the copied item
hItemInsertAfter The item after which to insert the copy, use $$TVI_FIRST or $$TVI_LAST to make the copy the first or last child of the parent.
hItem The handle to the item to copy

Returns

The handle of the copied item or 0 on error

Remarks

none

Examples

'copy an item to the last top level position
hNewItem = WinXTreeView_CopyItem (hTreeView, $TVI_ROOT, $$TVI_LAST, hItem)

Related Links

WinXAddTreeView
WinXTreeView_AddItem
WinXTreeView_DeleteItem