tvSetItemText

Top  Previous  Next

Syntax

UINT = tvSetItemText(win as WINDOW,id as UINT,handle as UINT,strText as STRING)

Description

Changes the text of an item in a tree view control.

Parameters

win - Window or dialog containing the control.

id - Identifier of the tree view control.

handle - Handle to item.

strText - New item text.

Return value

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

Remarks

See Also: tvGetItemText

Example usage

root1 = tvInsertItem(win,11,"Item 1",0)
child1 = tvInsertItem(win,11,"child 1",root1)
tvSetItemText(win, 11, child1, "Files")