Important: The information in this document is obsolete and should not be used for new development.
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 theGetMenu
orGetNewMBar
function), you specify the menu definition procedure that the Menu Manager should
use to manage the menu in the'MENU'
resource. If you use theNewMenu
function (instead of'MENU'
resources), your application must explicitly replace the handle to
the standard menu definition procedure in themenuProc
field of the menu record with a handle to the desired menu definition procedure.