Important: The information in this document is obsolete and should not be used for new development.
HMGetDialogResID
You can use theHMGetDialogResIDfunction 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 theHMSetDialogResIDfunction.
FUNCTION HMGetDialogResID (VAR resID: Integer): OSErr;
resID- The resource ID of the last
'hdlg'resource set with theHMSetDialogResIDfunction.DESCRIPTION
TheHMGetDialogResIDfunction returns in itsresIDparameter the resource ID of the last'hdlg'resource set with theHMSetDialogResIDfunction.You can use the
HMGetDialogResIDandHMSetDialogResIDfunctions when your application displays nested dialog boxes (although you should generally close one dialog box before displaying another). 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.If the
'hdlg'resource currently in use was not set by a call to theHMSetDialogResIDfunction, theHMGetDialogResIDfunction returns a result code ofresNotFound.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theHMGetDialogResIDfunction are
Trap macro Selector _Pack14 $0213 RESULT CODES
noErr 0 No error memFullErr -108 Not enough room in heap zone resNotFound -192 Unable to read resource SEE ALSO
You typically useHMGetDialogResIDin conjunction with theHMSetDialogResIDfunction, which is described on page 3-110.