Menu Manager
Code Examples
How to Hide the MenuBar
Initialize / Allocate
InitMenus Initialize the Menu Manager
InitProcMenu Install custom menu bar definition procedure
NewMenu Get a handle to an empty menu
GetMenu Get a handle to a menu from a 'MENU' resource
DisposeMenu Release memory of menu created via NewMenu
Forming the Menu Bar
InsertMenu Add a menu to the menu list
DeleteMenu Remove a menu from the menu list
SetMenuBar Install an entire menu list
DrawMenuBar Display the titles of all menus in the menu list
ClearMenuBar Redraw the menu bar with no menus
GetMenuBar Get a handle to the menu list
GetNewMBar Read a menu list from a resource (type 'MBAR')
Selecting from Menu
MenuSelect Initiate user selection of a menu item
PopUpMenuSelect Pop up a menu and initiate user selection of a menu item
MenuKey Find menu and item associated with command key
MenuChoice See if user attempted to select a disabled item
HiliteMenu Highlight or unhighlight menu title
Menu Items
AppendMenu Add one or more items to a menu
InsMenuItem Insert an item into a menu
AddResMenu Append names of selected resource type to menu
InsertResMenu Insert names of selected resource type into menu
DelMenuItem Delete an item from a menu [128K ROM]
EnableItem Undim a menu or a menu item; make selec table
DisableItem Dim a menu or a menu item; make non-selec table
GetItem Get the text of a menu item
SetItem Change the text of a menu item
CheckItem Place/remove a check mark to left of menu item
GetItemMark Query current mark character of a menu item
SetItemMark Place/remove character as item mark; attach submenu
GetItemIcon See which icon, if any, is attached to a menu item
SetItemIcon Select a menu icon by its resource ID
GetItemStyle Obtain current character formatting of menu item
SetItemStyle Select character formatting for a menu item
GetItemCmd Query current command character of a menu item
SetItemCmd Assign a command-key to a menu item; attach submenu
CountMItems Find how many items are in a menu
Miscellaneous
CalcMenuSize Calculate the size of a menu rectangle
GetMHandle Given a menu ID, obtain a handle to the menu
FlashMenuBar Invert one menu title or entire menu bar
SetMenuFlash Set number of times menu item blinks upon selection
Custom Menus How to make a custom menu handler
Color Menus
Color Menus About defining and using color in menus
GetMCInfo Make a copy of the current menu color table
SetMCInfo Install / replace current menu color table
DispMCInfo Dispose memory used by the menu color table
GetMCEntry Get address of a particular menu color table entry
SetMCEntries Install color information for one or more menu items
DelMCEntries Deletes menu color information for a menu item