Important: The information in this document is obsolete and should not be used for new development.
|
|
Log In | Not a Member? |
Contact ADC |
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 theGetMenuorGetNewMBarfunction), you specify the menu definition procedure that the Menu Manager should
use to manage the menu in the'MENU'resource. If you use theNewMenufunction (instead of'MENU'resources), your application must explicitly replace the handle to
the standard menu definition procedure in themenuProcfield of the menu record with a handle to the desired menu definition procedure.
Get information on Apple products.
Visit the Apple Store online or at retail locations. 1-800-MY-APPLE Copyright © 2007 Apple Inc. All rights reserved. | Terms of use | Privacy Notice |