Important: The information in this document is obsolete and should not be used for new development.
ClearMenuBar
Use theClearMenuBar
procedure to delete all menus from the current menu list.
PROCEDURE ClearMenuBar;DESCRIPTION
TheClearMenuBar
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, useDisposeMenu
for each menu you created usingNewMenu
; useReleaseResource
for each menu you created usingGetMenu
or if you read the resource in usingGetNewMBar.
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 ofDrawMenuBar
on page 3-115. For information on theReleaseResource
procedure, see the chapter "Resource Manager" in Inside Macintosh: More Macintosh Toolbox.