CreatePopupMenuEx command

The CreatePopupMenuEx command creates a popup menu which is initially empty. You can insert or append menu items by using CreateMenuItem command.

 

Syntax

PluginRun("PlugIn","CreatePopupMenuEx")

PluginGet("PlugIn","MenuHandle")

Parameters

MenuHandle

[out] The handle of a new popup menu.

Remarks

The last created popup menu is automatically assigned as the right-click menu. To assign another popup menu as the right-click menu, pass its handle to the SetContextMenuHandle command. To disable the right-click menu pass zero to the SetContextMenuHandle command.