Back to X64dbg

GuiMenuAddSeparator

docs/developers/functions/gui/GuiMenuAddSeparator.md

2026.04.201.2 KB
Original Source

GuiMenuAddSeparator

Adds a menu separator to a menu.

c++
void GuiMenuAddSeparator(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);
GuiMenuAddEntry(hNewMenu, &szMenuEntry1Text);
GuiMenuAddEntry(hNewMenu, &szMenuEntry2Text);
GuiMenuAddSeparator(hNewMenu);
GuiMenuAddEntry(hNewMenu, &szMenuEntry3Text);
GuiMenuAddEntry(hNewMenu, &szMenuEntry4Text);

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