tvSelectItem

Top  Previous  Next

Syntax

INT = tvSelectItem(win as WINDOW,id as UINT,handle as UINT)

Description

Changes the selected item in a tree view control.

Parameters

win - Window or dialog containing the control.

id - Identifier of the tree view control.

handle - Handle to new selected item.

Return value

TRUE (1) if successful, FALSE(0) on failure.

Remarks

See Also: tvGetSelectedItem

Example usage

root1 = tvInsertItem(win,11,"Item 1",0)
child1 = tvInsertItem(win,11,"child 1",root1)
tvInsertItem(win,11,"Child of child1",child1)
tvSelectItem  win, 11, root1