BlitzMax Docs -> W -> WindowMenu
WindowMenu:TGadget( window:TGadget )
Description:Get a window's main-menu handle.Required when a menu is to be added to a window using CreateMenu. This functionshould not be used for sub-menus under any circumstance.
It should also be mentioned that when creating popup menus this function isn't required - insteadNull should be passed as the parent of the root popup menu.See Also: CreateMenu and UpdateWindowMenu
BlitzMax Manual Forum
Blitz3D Equivalent Command