x64dbg/docs/developers/functions/gui/GuiMenuAddSeparator.md
2025-07-04 01:32:42 +02:00

1.2 KiB

GuiMenuAddSeparator

Adds a menu separator to a menu.

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

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: