Back to X64dbg

GuiMenuSetIcon

docs/developers/functions/gui/GuiMenuSetIcon.md

2026.04.201.1 KB
Original Source

GuiMenuSetIcon

Sets an icon for a specified menu.

c++
void GuiMenuSetIcon(int hMenu, const ICONDATA* icon)

Parameters

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

icon

Return Value

This function does not return a value.

Example

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

Note: Plugin developers should make use of the plugin functions provided: