Cicode Programming Reference > Cicode Function Categories > Menu Functions > MenuNodeGetExpanded

MenuNodeGetExpanded

Gets the expansion state value of the specified menu node in number. The expansion state value is user defined can be any integer value. The value is set by MenuNodeSetExpanded function and the initial value is zero(0).

Syntax

MenuNodeGetExpanded(hNode)

hNode:

Handle to the current node in the menu tree.

Return Value

The expansion state value to set for the Menu node or -1 if unsuccessful.

Related Functions

MenuGetChild, MenuGetFirstChild, MenuGetGenericNode, MenuGetNextChild, MenuGetPageNode, MenuGetParent, MenuGetPrevChild, MenuGetWindowNode, MenuNodeAddChild, MenuNodeGetCurr, MenuNodeGetDepth, MenuNodeGetProperty, MenuNodeGetTargetPage, MenuNodeHasCommand, MenuNodeIsDisabled, MenuNodeIsHidden, MenuNodeRemove, MenuNodeRunCommand, MenuNodeSetDisabledWhen, MenuNodeSetHiddenWhen, MenuNodeSetProperty, MenuReload

Example

MenuNodeSetExpanded(100, 99)
//Put 99 as an expansion state of the menu node handle 100
MenuNodeGetExpanded(100)
//This will return 99 that is stored by the previous call	
				

See Also

Menu Functions

Published June 2018