hTreeView = WinXAddTreeView (parent, hImages, editable, draggable, id)
Creates a new tree view control and adds it to a window
Parameter | Description |
---|---|
parent | The handle to the window to add the tree view control to |
hImages | The handle to the image list containing the images for the tree view control, 0 if there are no images |
editable | $$TRUE if the user can edit the labels, $$FALSE otherwise |
draggable | $$TRUE if the user can drag items, $$FALSE otherwise |
id | The unique id constant for this control |
The handle to the new tree view control or 0 on fail
To implement label edit you need to provide and register an onLabelEdit callback. To implement dragging you need to provide and register te onDrag callback.
The hImages parameter is a handle to an image list control. See the Win32 documentation for more information on image lists.
'define the id 'first, make an image list 'now create the tree view control |
WinXTreeView_AddItem
WinXTreeView_DeleteItem
WinXTreeView_GetSelection
WinXTreeView_CopyItem
onDrag (Callback)
onLabelEdit (Callback)