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 theDisposeMenu
procedure or the Resource Manager procedureReleaseResource
.
UseDisposeMenu
if you created the menu usingNewMenu
; useReleaseResource
if you created the menu usingGetMenu
or read the resource in usingGetNewMBar
.You should delete the menu from the current menu list using
DeleteMenu
orClearMenuBar
before calling theDisposeMenu
procedure.
PROCEDURE DisposeMenu (theMenu: MenuHandle);
theMenu
- A handle to the menu record of the menu you wish to dispose of.
DESCRIPTION
TheDisposeMenu
procedure releases the memory occupied by the specified menu's menu record. The handle that you pass in the parametertheMenu
is not valid afterDisposeMenu
returns.SEE ALSO
To delete a menu from the current menu list, see the description of theDeleteMenu
procedure on page 3-109.