Getting and Setting Information for Help Resources
Getting and Setting Information for Help Resources
Using the HMSetMenuResID or HMScanTemplateItems function,
you can set help resources for menus, dialog boxes, or windows of your
application that do not currently have help resources associated with
them. You can also supplement the 'hmnu' and 'hdlg' resources
currently associated with the menus and dialog boxes of your
application by using the HMSetMenuResID or HMSetDialogResID
function.
You can use the HMGetDialogResID function to get the resource ID
of the 'hdlg' resource that will be used by the next dialog box as a
result of a previous call to the HMSetDialogResID function. If the
'hdlg' resource currently in use has not been overridden by a call to
HMSetDialogResID, the HMGetDialogResID function returns a
result code of resNotFound.
You can use the HMGetDialogResID and HMSetDialogResID
functions when displaying nested dialog boxes. For example, you can
save the 'hdlg' resource of the current dialog box, set a new 'hdlg'
resource, display the new dialog box, and then restore the setting of the
previous 'hdlg' resource when you close the second dialog box.