TreeView_SetExpanded

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Types > TreeView Control > TreeView Control Commands >

TreeView_SetExpanded

 

Description

 

The expanded attribute for the data item specified by hItem is set based upon the value of the ExpandFlag parameter.

If ExpandFlag is %TRUE, the item is displayed in expanded format, with its child items visible. If ExpandFlag is %FALSE, the item is displayed in collapsed format.

 

Syntax

 

Treeview_SetExpanded(hWnd, ctrlID, hItem, ExpandFlag)

 

Returns

 

None

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Handle of the dialog containing the control

ctrlID

Number

No

Control identifier assigned to the control during CONTROL ADD ...

hItem

Number

No

Handle of a Treeview item, used to uniquely identify the item

ExpandFlag

Number

No

%TRUE or %FALSE

 

Remarks

 

Restrictions

 

See also

 

Examples