bgiUpdateWindowMenu

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

win Int

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.

Example

Example.bam
; No example implemented yet