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
Resources


The Menu Definition Procedure Resource

If you provide your own menu definition procedure, you should store it in a resource of type 'MDEF'. Provide as the resource data the compiled or assembled code of your menu definition procedure. The entry point of your procedure must be at the beginning of the resource data.

If you define your menus in 'MENU' resources (and use the GetMenu or GetNewMBar function), you specify the menu definition procedure that the Menu Manager should
use to manage the menu in the 'MENU' resource. If you use the NewMenu function (instead of 'MENU' resources), your application must explicitly replace the handle to
the standard menu definition procedure in the menuProc field of the menu record with a handle to the desired menu definition procedure.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996