Function ProMenuCreate
Description
Displays the menu on the screen. A menu must be loaded before it can be displayed; when a menu is redisplayed, all menu items are accessible.
This function affects Menu-Manager (mode-specific) menus only.
The menu type is almost always a main menu (type PROMENUTYPE_MAIN). An example of a submenu (type PROMENUTYPE_SUB) is the Done/Quit submenu below the Sketcher menu. Done/Quit has no title and serves only as an extension of the Sketcher menu (the PROMENUTYPE_MAIN menu).
Synopsis
#include <ProMenu.h>
ProMenuCreate
(
/* (In)
The menu type (PROMENUTYPE_MAIN for a main menu, PROMENUTYPE_SUB for a submenu).
*/
ProMenuName menuname
/* (In)
The name of the menu.
*/
int* menu_id
/* (Out)
The identifier of the menu displayed. This argument can be NULL.
*/
)
Returns
The function successfully displayed the menu.
The specified menu does not exist.
See Also
Sample Code References
User Guide References
¿Fue esto útil?