Important: The information in this document is obsolete and should not be used for new development.
HMSetMenuResID
You can use theHMSetMenuResID
function to set the'hmnu'
resource for a menu that did not previously have one or to supplement the existing'hmnu'
resource for a menu.
FUNCTION HMSetMenuResID (menuID, resID: Integer): OSErr;
menuID
- The menu to associate with the
'hmnu'
resource.resID
- The resource ID of the
'hmnu'
resource to use for the menu specified by themenuID
parameter.DESCRIPTION
TheresID
parameter specifies the resource ID of the'hmnu'
resource to use for the menu specified by themenuID
parameter. The menu identified by themenuID
parameter should correspond to an existing menu in your menu list. The Help Manager maintains a list of the menus whose'hmnu'
resources you set using theHMSetMenuResID
function.Before your application terminates, specify -1 in the
resID
parameter to disassociate a particular menu and an'hmnu'
resource that you previously associated using theHMSetMenuResID
function.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theHMSetMenuResID
function are
Trap macro Selector _Pack14 $020D RESULT CODES
noErr 0 No error memFullErr -108 Not enough room in heap zone SEE ALSO
"Providing Help Balloons for Menus You Disable for Dialog Boxes" beginning on page 3-43 describes how to useHMSetMenuResID
to associate an alternate'hmnu'
resource with a menu that your application dims when it displays a dialog box.