Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== GetMenu function ====== ==== Description ==== Return's the handle of a window's menu, if any. OpenInsight does not return the [[handle|HANDLE property]] for a menu entity. Use GetMenu() instead. ==== Syntax ==== //menu_handle =// **GetMenu**(hWnd) Parameter The GetMenu function has the following parameter: ^Parameter^Description^ |//hWnd//|The window's handle. Use the [[handle|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|HANDLE property]], [[dthandle|DTHANDLE property]] ==== Example ==== <code> /* 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) </code> guides/programming/programmers_reference_manual/getmenu.txt Last modified: 2024/06/19 20:20by 127.0.0.1