Important: The information in this document is obsolete and should not be used for new development.
HMGetMenuResID
After you use theHMSetMenuResIDfunction to associate a menu with an'hmnu'resource, you can use theHMGetMenuResIDfunction to get the resource ID of the'hmnu'resource.
FUNCTION HMGetMenuResID (menuID: Integer; VAR resID: Integer): OSErr;
menuID- The menu for which you want the associated
'hmnu'resource. The value specified in themenuIDparameter must have been previously associated using theHMSetMenuResIDfunction.resID- The resource ID of the
'hmnu'resource associated with the specified menu.DESCRIPTION
HMGetMenuResIDreturns in itsresIDparameter the resource ID of the'hmnu'resource associated with the menu specified by themenuIDparameter. If the menu does not have an'hmnu'resource that was previously set usingHMSetMenuResID, theHMGetMenuResIDfunction returns -1 in theresIDparameter and a nonzero result code.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theHMGetMenuResIDfunction are
Trap macro Selector _Pack14 $0314 RESULT CODES
noErr 0 No error resNotFound -192 Unable to read resource SEE ALSO
TheHMSetMenuResIDfunction is described on page 3-107.