Cicode Programming Reference > Cicode Function Categories > Menu Functions Introduction > MenuGetPageNode


Returns the handle to the base node of the menu tree of a specified page. Its child nodes represent the menu items that have the particular page specified in the menu configuration database.


MenuGetPageNode(sPage [, bCreate])


The name of the page to return the base menu tree handle for.


Determines if the node should be created if it does not exist. Defaults to 0, do not create.

Return Value

The handle to the base node of the menu tree, or -1 if no handle returned to the base node of menu.

Related Functions

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

See Also

Menu Functions