Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Macintosh Toolbox Essentials /
Chapter 3 - Menu Manager / Menu Manager Reference


Menu Manager Routines

The Menu Manager includes routines for creating menus, changing the characteristics of menu items, and handling user choice of menu commands. The Menu Manager also provides routines for adding items to and deleting items from menus, counting the number of items in a menu, getting a handle to a menu's menu record, disposing of menus, calculating the dimensions of a menu, highlighting the menu bar, and managing entries in your application's menu color information table.

Some Menu Manager routines can be accessed using more than one spelling of the routine's name, depending on the interface files supported by your development environment. For example, GetMenuHandle is also available as GetMHandle.
Table 3-8 provides a mapping between the previous name of a routine and its new equivalent name.

Table 3-8 Table 3-8 Mapping between new and previous names of Menu Manager routines
New namePrevious name
AppendResMenuAddResMenu
DeleteMCEntriesDelMCEntries
DeleteMenuItemDelMenuItem
DisposeMCInfoDispMCInfo
GetMenuHandleGetMHandle
GetMenuItemTextGetItem
InsertMenuItemInsMenuItem
SetMenuItemTextSetItem


Subtopics
Initializing the Menu Manager
Creating Menus
Adding Menus to and Removing Menus From the Current Menu List
Getting a Menu Bar Description From an 'MBAR' Resource
Getting and Setting the Menu Bar
Drawing the Menu Bar
Responding to the User's Choice of a Menu Command
Getting a Handle to a Menu Record
Adding and Deleting Menu Items
Getting and Setting the Appearance of Menu Items
Disposing of Menus
Counting the Items in a Menu
Highlighting the Menu Bar
Recalculating Menu Dimensions
Managing Entries in the Menu Color Information Table

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996