Ets_Ctl_Tree_Root_Element_Get()
Note: Requires OPNET Development Kit
Abstract
Returns the root element of the given tree control.
Syntax
Ets_Ctl_Tree_Root_Element_Get (tree_ctl_ptr)
| Argument | Type | Description |
|---|---|---|
tree_ctl_ptr |
EtsT_Ctl * |
The tree control to search for the root element. |
Return Type
EtsT_Tree_Element *
A pointer to the root element of the tree control or NIL if failure.
Header
ets_api_gui.h
Details
Takes the tree control of interest and returns the element that is currently the root of the tree. Useful for destroying a tree by passing the root element to Ets_Tree_Element_Destroy(). To set an element as the root of a tree control, see Ets_Ctl_Tree_Root_Element_Set().