MenuFromHandle
From Auto Hotkey
MenuFromHandle
Retrieves the Menu object corresponding to a Win32 menu handle.
Menu := MenuFromHandle(Handle)
Parameters
- Handle
A handle to a Win32 menu (of type
HMENU).
Remarks
Only the menu's current handle is recognized. When the menu's underlying Win32 menu is destroyed and recreated, the handle changes. For details, see Win32 Menus.
If the handle is invalid or does not correspond to a menu created by this script, the function returns an empty string.