MenuFromHandle

Retrieves the Menu or MenuBar object corresponding to a Win32 menu handle.

Menu := MenuFromHandle(Handle)

Parameters

Handle

Type: Integer

A handle to a Win32 menu (of type HMENU).

Remarks

If the handle is invalid or does not correspond to a menu created by this script, the function returns an empty string.

Related

Win32 Menus, Menu/MenuBar object, Menu.Handle, Menu.New