Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

...

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

...

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

Code Block
/* 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)