HMScanTemplateItems
'hdlg' or 'hrct'
short whichID ; the resource ID to search for
short whichResFile; the file reference number of the resource file to
ResType whichType; the type of help resource to search for particular resource of type 'hdlg' or 'hrct' and, if the resource is
found, use it for the active window. (If you want this capability
without modifying your code, you can add a helpItem item to your
'DITL' resources or add an 'hwin' resource-as described elsewhere
in two independent sections,
whichID specifies the resource ID to search for.
whichResFile specifies the file reference number of the resource file to search.
The resource file must already be open. Specify -1 in the
whichResFile parameter to search the current resource file.
whichType specifies the type of help resource to search for-either 'hdlg' or
'hrct'. If the specified resource is found, the Help Manager applies the help information specified in the resource to the frontmost
window.
noErr (0) No error
fnOpnErr (-38) File not open
memFullErr (-108) Not enough room in heap zone
resNotFound (-192) Unable to read resource