Run-Time Functions: Initialize a dialog box.
Module: USE DFLOGM
Syntax
Results:
The result is of type 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 will not 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 main application. If the dialog resource is in a dynamic link library (DLL), hinst must be the value passed as the first argument to the DLLMAIN procedure.
Dialogs can be used from any application, including console, QuickWin, and Windows.
Compatibility
CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB
See Also: DLGEXIT, DLGMODAL, DLGMODELESS, DLGUNINIT
Example
USE DFLOGM
INCLUDE 'DLG1.FD'
LOGICAL retlog
TYPE (DIALOG) thisdlg
...
retlog = DLGINIT (IDD_DLG3, thisdlg)
IF (.not. retlog) THEN
WRITE (*,*) 'ERROR: dialog not found'
ELSE
...