GuiMenuAdd

此功能将新的子菜单添加到菜单。

int GuiMenuAdd(int hMenu, const char* title)

参数

hMenu Menu handle from a previously-added menu or from the main menu.

title A const char repesenting the text title of the menu item to be added.

返回值

Returns the menu handle (unique), or -1 on failure.

示例

hNewMenu = GuiMenuAdd(hMenu, &szMenuTitle);