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 / Disposing of Menus


DisposeMenu

To release the memory occupied by a menu's associated data structures, use either the DisposeMenu procedure or the Resource Manager procedure ReleaseResource.
Use DisposeMenu if you created the menu using NewMenu; use ReleaseResource if you created the menu using GetMenu or read the resource in using GetNewMBar.

You should delete the menu from the current menu list using DeleteMenu or ClearMenuBar before calling the DisposeMenu procedure.

PROCEDURE DisposeMenu (theMenu: MenuHandle); 
theMenu
A handle to the menu record of the menu you wish to dispose of.
DESCRIPTION
The DisposeMenu procedure releases the memory occupied by the specified menu's menu record. The handle that you pass in the parameter theMenu is not valid after DisposeMenu returns.

SEE ALSO
To delete a menu from the current menu list, see the description of the DeleteMenu procedure on page 3-109.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996