Attaches the menu bar to a window and makes it visible.
Takes win (Int).
Returns the result of SetMenu (non-zero on success), or 0 if window or menu not found.
BGI GUI
Parameters & Returns
Parameters
winInt
Returns
Int
Quick Summary
Attaches the menu bar to a window and makes it visible.
Takes win (Int).
Returns the result of SetMenu (non-zero on success), or 0 if window or menu not found.
Technical Exegesis...
Attaches the menu bar to a window, making it visible in the window's title bar area. First searches gizmoMap for the window ID to get the HWND. Then searches menuMap for a menu with matching parentID to get the HMENU handle. Calls SetMenu to attach the menu to the window. Returns the result of SetMenu (non-zero on success), or 0 if window or menu not found.
Call this after creating the menu bar with bgiCreateWindowMenu and adding all submenus/items. The menu bar will appear below the title bar.
Attaches the menu bar to a window, making it visible in the window's title bar area. First searches gizmoMap for the window ID to get the HWND. Then searches menuMap for a menu with matching parentID to get the HMENU handle. Calls SetMenu to attach the menu to the window. Returns the result of SetMenu (non-zero on success), or 0 if window or menu not found.
Call this after creating the menu bar with bgiCreateWindowMenu and adding all submenus/items. The menu bar will appear below the title bar. Changes to menu items (text, checked state, enabled state) take effect immediately without needing to call this again. Only the initial attachment or menu replacement requires this call.