Back to X64dbg

GuiMenuClear

docs/developers/functions/gui/GuiMenuClear.md

2026.04.201.1 KB
Original Source

GuiMenuClear

This function removes all entries and child menus from a menu. It will not remove the menu itself.

c++
void GuiMenuClear(int hMenu)

Parameters

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

Return Value

This function does not return a value.

Example

c++
hNewMenu = GuiMenuAdd(hMenu, &szMenuTitle);
GuiMenuClear(hMenuNew);

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