## wb_set_state

bool wb_set_state (int wbobject, int item, int state)

Sets the state of a control item (a treeview node). Returns `TRUE` on success or `FALSE` if an error occurs.

# Setting states

This function can currently set the expanded or collapsed state of the treeview node indicated by item. Set state to TRUE to expand the node or FALSE to collapse it.

# See also

wb_get_state
Control functions