Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference Intel® Fortran Libraries Reference

h.eng.cam.ac.uk
from h.eng.cam.ac.uk More from this publisher
12.07.2015 Views

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

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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!