Important: The information in this document is obsolete and should not be used for new development.
HMGetMenuResID
After you use theHMSetMenuResID
function to associate a menu with an'hmnu'
resource, you can use theHMGetMenuResID
function 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 themenuID
parameter must have been previously associated using theHMSetMenuResID
function.resID
- The resource ID of the
'hmnu'
resource associated with the specified menu.DESCRIPTION
HMGetMenuResID
returns in itsresID
parameter the resource ID of the'hmnu'
resource associated with the menu specified by themenuID
parameter. If the menu does not have an'hmnu'
resource that was previously set usingHMSetMenuResID
, theHMGetMenuResID
function returns -1 in theresID
parameter and a nonzero result code.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theHMGetMenuResID
function are
Trap macro Selector _Pack14 $0314 RESULT CODES
noErr 0 No error resNotFound -192 Unable to read resource SEE ALSO
TheHMSetMenuResID
function is described on page 3-107.