GuiMenuSetIcon

Sets an icon for a specified menu.

void GuiMenuSetIcon(int hMenu, const ICONDATA* icon)

参数

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

icon

返回值

此函数不返回值。

示例

ICONDATA rocket; rocket.data = icon_rocket; rocket.size = sizeof(icon_rocket); hNewMenuEntry = GuiMenuAddEntry(hMenu, &szMenuEntryText); GuiMenuSetIcon(hMenuDisasm,&rocket);