Using Intel® Visual Fortran to Create and Build Windows*-Based Applications

ID 757211
Date 7/23/2021
Public
Document Table of Contents

Writing a Dialog Application

When creating a dialog box with the Resource Editor, you specify the types of controls that are to be included in the box. You then must provide procedures to make the dialog box active. These procedures use both dialog routines and your subroutines to control your program's response to the user's dialog box input.

You give your application access to your dialog resource by adding the .RC file to your project, giving your application access to the dialog include file, and associating the dialog properties in these files with the dialog type (see Initializing and Activating the Dialog Box).

Your application must include the statement USE IFLOGM to access the dialog routines, and it must include the .FD file that the Resource Editor created for your dialog using DEFTOFD. For example:

  PROGRAM TEMPERATURE
  USE IFLOGM
  IMPLICIT NONE
  INCLUDE 'RESOURCE.FD'
  .
  . ! Call dialog routines, such as DlgInit, DlgModal, and DlgUninit
  .
  END PROGRAM TEMPERATURE

The following sections describe how to code a dialog application.