Description

Return's the handle of a window's menu, if any. OpenInsight does not return the HANDLE property for a menu entity. Use GetMenu() instead.

Syntax

menu_handle = GetMenu (hWnd)

Parameter

The GetMenu function has the following parameter:

ParameterDescription
hWndThe window's handle. Use the Get_Property(@window, 'HANDLE') call to read the window's handle.

Returns

If menu_handle returns a positive number, this is the window's menu handle. If menu_handle returns 0, the window has no menu.

See Also

HANDLE propertyDTHANDLE property

Example

/* if the current window contains a menu, hMenu will contain the handle after the GetMenu() call */
 
declare function GetMenu
hwnd = Get_Property(@window, 'HANDLE')
hMenu = GetMenu(hwnd)
  • No labels