GetMenu function

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.

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.

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

/* 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)
  • guides/programming/programmers_reference_manual/getmenu.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1