Intel® Fortran Libraries Reference
Intel® Fortran Libraries Reference Intel® Fortran Libraries Reference
2 Intel Fortran Libraries ReferenceSyntaxresult = DLGINIT (id, dlg)result = DLGINITWITHRESOURCEHANDLE (id, hinst, dlg)id(Input) INTEGER(4). Dialog identifier. Can be either the symbolic name for the dialog or theidentifier number, both listed in the Include file (with extension .FD).dlg(Output) Derived type dialog. Contains dialog box parameters.hinst(Input) INTEGER(4). Module instance handle in which the dialog resource can be found.Results:The result type is LOGICAL(4). The result is .TRUE. if successful; otherwise, the result is.FALSE..DLGINIT must be called to initialize a dialog box before it can be used with DLGMODAL,DLGMODELESS, or any other dialog function.DLGINIT will only search for the dialog box resource in the main application. For example, it willnot find a dialog box resource that has been built into a dynamic link library.DLGINITWITHRESOURCEHANDLE can be used when the dialog resource is not in the mainapplication. If the dialog resource is in a dynamic link library (DLL), hinst must be the valuepassed as the first argument to the DLLMAIN procedure.Dialogs can be used from any application, including console, QuickWin, and Windowsapplications.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS LIBSee Also: “DLGEXIT”, “DLGMODAL, DLGMODALWITHPARENT”, “DLGMODELESS”,“DLGUNINIT”ExampleUSE IFLOGMINCLUDE 'DLG1.FD'LOGICAL retlogTYPE (DIALOG) thisdlg...retlog = DLGINIT (IDD_DLG3, thisdlg)IF (.not. retlog) THEN2-54
Descriptions of the Library Routines 2WRITE (*,*) 'ERROR: dialog not found'ELSE...DLGISDLGMESSAGE, DLGISDLGMESSAGEWITHDLGDialog Functions: Determine whether the specified message is intended for one of the currentlydisplayed modeless dialog boxes, or a specific dialog box. These functions are only available onWindows* systems on IA-32 processors.Module: USE IFLOGMSyntaxresult = DLGISDLGMESSAGE (mesg)result = DLGISDLGMESSAGEWITHDLG (mesg, dlg)mesg(Input) Derived type T_MSG. Contains a Windows message.dlg(Input) Derived type dialog Contains dialog box parameters. The components of the typedialog are defined with the PRIVATE attribute, and cannot be changed or individually accessedby the user.Results:The result type is LOGICAL(4). The result is .TRUE. if the message is processed by the dialogbox. Otherwise, the result is .FALSE. and the message should be further processed.DLGISDLGMESSAGE must be called in the message loop of Windows applications that displaya modeless dialog box using DLGMODELESS. DLGISDGMESSAGE determines whether themessage is intended for one of the currently displayed modeless dialog boxes. If it is, it passes themessage to the dialog box to be processed.DLGISDLGMESSAGEWITHDLG specifies a particular dialog box to check. UseDLGISDLGMESSAGEWITHDLG when the message loop is in a main application and thecurrently active modeless dialog box was created by a DLL.CompatibilityWINDOWSSee Also: “DLGMODELESS”, "Using a Modeless Dialog Routine" in your user’s guideExampleuse IFLOGMinclude 'resource.fd'2-55
- Page 55 and 56: Descriptions of the Library Routine
- Page 57 and 58: Descriptions of the Library Routine
- Page 59 and 60: Descriptions of the Library Routine
- Page 61 and 62: Descriptions of the Library Routine
- Page 63 and 64: Descriptions of the Library Routine
- Page 65 and 66: Descriptions of the Library Routine
- Page 67 and 68: Descriptions of the Library Routine
- Page 69 and 70: Descriptions of the Library Routine
- Page 71 and 72: Descriptions of the Library Routine
- Page 73 and 74: Descriptions of the Library Routine
- Page 76 and 77: 2 Intel Fortran Libraries Reference
- Page 79 and 80: Descriptions of the Library Routine
- Page 82 and 83: 2 Intel Fortran Libraries Reference
- Page 84 and 85: 2 Intel Fortran Libraries Reference
- Page 86 and 87: 2 Intel Fortran Libraries Reference
- Page 88 and 89: 2 Intel Fortran Libraries Reference
- Page 90 and 91: 2 Intel Fortran Libraries Reference
- Page 92 and 93: 2 Intel Fortran Libraries Reference
- Page 94 and 95: 2 Intel Fortran Libraries Reference
- Page 96: 2 Intel Fortran Libraries Reference
- Page 100 and 101: 2 Intel Fortran Libraries Reference
- Page 102 and 103: 2 Intel Fortran Libraries Reference
- Page 104 and 105: 2 Intel Fortran Libraries Reference
- Page 108 and 109: 2 Intel Fortran Libraries Reference
- Page 110 and 111: 2 Intel Fortran Libraries Reference
- Page 112 and 113: 2 Intel Fortran Libraries Reference
- Page 114 and 115: 2 Intel Fortran Libraries Reference
- Page 116 and 117: 2 Intel Fortran Libraries Reference
- Page 118 and 119: 2 Intel Fortran Libraries Reference
- Page 120 and 121: 2 Intel Fortran Libraries Reference
- Page 122 and 123: 2 Intel Fortran Libraries Reference
- Page 124 and 125: 2 Intel Fortran Libraries Reference
- Page 126 and 127: 2 Intel Fortran Libraries Reference
- Page 128 and 129: 2 Intel Fortran Libraries Reference
- Page 130 and 131: 2 Intel Fortran Libraries Reference
- Page 132 and 133: 2 Intel Fortran Libraries Reference
- Page 134 and 135: 2 Intel Fortran Libraries Reference
- Page 136 and 137: 2 Intel Fortran Libraries Reference
- Page 138 and 139: 2 Intel Fortran Libraries Reference
- Page 140 and 141: 2 Intel Fortran Libraries Reference
- Page 142 and 143: 2 Intel Fortran Libraries Reference
- Page 144 and 145: 2 Intel Fortran Libraries Reference
- Page 146 and 147: 2 Intel Fortran Libraries Reference
- Page 148 and 149: 2 Intel Fortran Libraries Reference
- Page 150 and 151: 2 Intel Fortran Libraries Reference
- Page 152 and 153: 2 Intel Fortran Libraries Reference
- Page 154 and 155: 2 Intel Fortran Libraries Reference
Descriptions of the Library Routines 2WRITE (*,*) 'ERROR: dialog not found'ELSE...DLGISDLGMESSAGE, DLGISDLGMESSAGEWITHDLGDialog Functions: Determine whether the specified message is intended for one of the currentlydisplayed modeless dialog boxes, or a specific dialog box. These functions are only available onWindows* systems on IA-32 processors.Module: USE IFLOGMSyntaxresult = DLGISDLGMESSAGE (mesg)result = DLGISDLGMESSAGEWITHDLG (mesg, dlg)mesg(Input) Derived type T_MSG. Contains a Windows message.dlg(Input) Derived type dialog Contains dialog box parameters. The components of the typedialog are defined with the PRIVATE attribute, and cannot be changed or individually accessedby the user.Results:The result type is LOGICAL(4). The result is .TRUE. if the message is processed by the dialogbox. Otherwise, the result is .FALSE. and the message should be further processed.DLGISDLGMESSAGE must be called in the message loop of Windows applications that displaya modeless dialog box using DLGMODELESS. DLGISDGMESSAGE determines whether themessage is intended for one of the currently displayed modeless dialog boxes. If it is, it passes themessage to the dialog box to be processed.DLGISDLGMESSAGEWITHDLG specifies a particular dialog box to check. UseDLGISDLGMESSAGEWITHDLG when the message loop is in a main application and thecurrently active modeless dialog box was created by a DLL.CompatibilityWINDOWSSee Also: “DLGMODELESS”, "Using a Modeless Dialog Routine" in your user’s guideExampleuse IFLOGMinclude 'resource.fd'2-55