Important: The information in this document is obsolete and should not be used for new development.
DisposeMenu
To release the memory occupied by a menu's associated data structures, use either theDisposeMenuprocedure or the Resource Manager procedureReleaseResource.
UseDisposeMenuif you created the menu usingNewMenu; useReleaseResourceif you created the menu usingGetMenuor read the resource in usingGetNewMBar.You should delete the menu from the current menu list using
DeleteMenuorClearMenuBarbefore calling theDisposeMenuprocedure.
PROCEDURE DisposeMenu (theMenu: MenuHandle);
theMenu- A handle to the menu record of the menu you wish to dispose of.
DESCRIPTION
TheDisposeMenuprocedure releases the memory occupied by the specified menu's menu record. The handle that you pass in the parametertheMenuis not valid afterDisposeMenureturns.SEE ALSO
To delete a menu from the current menu list, see the description of theDeleteMenuprocedure on page 3-109.