Important: The information in this document is obsolete and should not be used for new development.
ClearMenuBar
Use theClearMenuBarprocedure to delete all menus from the current menu list.
PROCEDURE ClearMenuBar;DESCRIPTION
TheClearMenuBarprocedure deletes all menus from the current menu list and deletes all color entries from the application's menu color information table.ClearMenuBardoes 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, useDisposeMenufor each menu you created usingNewMenu; useReleaseResourcefor each menu you created usingGetMenuor if you read the resource in usingGetNewMBar.After deleting all menus from the current menu list, use
DrawMenuBarto update the appearance of the menu bar.SEE ALSO
To update your application's menu bar, see the description ofDrawMenuBaron page 3-115. For information on theReleaseResourceprocedure, see the chapter "Resource Manager" in Inside Macintosh: More Macintosh Toolbox.