Generates a menu resource according to the menu items definition and options, and returns a menu handle.

Syntax

MENU_HANDLE AM_CreateMenu(
  const AM_MenuItem *menuTable,
  const pAM_Option option
);

Parameters

menuTable
[in] A pointer to an array of AM_MenuItem structures that defines the menu.
option
[in] To specify options, set the pointer to an AM_Option structure. Otherwise, set NULL.

Return value

Returns a menu handle of generated menu resource if the function succeeds, NULL otherwise.

Remarks

Generates a menu resource according to the menu items and options specified in the parameters and returns a menu handle that represents the menu resource.

Call each function of the menu display functions with the menu handle.
If the return value of this function is not NULL, be sure to call AM_ReleaseMenu function to release the menu resource.

Requirements

Header file:
lib.h
AdvancedMenu.h
Library file:
libAdvancedMenu.a
libSTARTUPOPH5000.a

See also

Last updated: 2020/10/09