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 / Adding Menus to and Removing Menus From the Current Menu List


ClearMenuBar

Use the ClearMenuBar procedure to delete all menus from the current menu list.

PROCEDURE ClearMenuBar; 
DESCRIPTION
The ClearMenuBar procedure deletes all menus from the current menu list and deletes all color entries from the application's menu color information table. ClearMenuBar does not release the memory occupied by any of the menus' menu records or the menu color information table. To release the memory occupied by the data structures associated with the menus, use DisposeMenu for each menu you created using NewMenu; use ReleaseResource for each menu you created using GetMenu or if you read the resource in using GetNewMBar.

After deleting all menus from the current menu list, use DrawMenuBar to update the appearance of the menu bar.

SEE ALSO
To update your application's menu bar, see the description of DrawMenuBar on page 3-115. For information on the ReleaseResource procedure, see the chapter "Resource Manager" in Inside Macintosh: More Macintosh Toolbox.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996