progressboxtypes.f90

来自「Intel Visual Fortran 应用程序开发 周振红编著」· F90 代码 · 共 54 行

F90
54
字号
!  Module containing definitions used in the public interfaces
module ProgressBoxTypes
  use iflogm
  !  Global variables
  integer ghinst
  !  PBContext type used in calls
  type :: PBContext
    sequence 
    type (dialog), pointer :: PBDlg
    integer                   hwndParent
    logical                   bCancelButton
    integer                   iProgress
    logical                   bEnableParent
    logical                   bCancelled
  end type
  !  Status return values 
  integer, parameter, public :: PBStatus_OK         = 1
  integer, parameter, public :: PBStatus_Failed     = -1
  integer, parameter, public :: PBStatus_Aborted    = -2
end module ProgressBoxTypes

!  Module containing the public interfaces

module ProgressBox
  use ProgressBoxTypes
  interface
    integer function DisplayProgressBox(    &
                    context,            &
                    hwndParent,         &
                    title,              &
                    bCancelButton ) 
    !DEC$ ATTRIBUTES DLLEXPORT::DisplayProgressBox
      use ProgressBoxTypes
      ! Arguments
      type(PBContext) context
      integer hwndParent
      character*(*) title
      logical bCancelButton
    end function
    integer function SetProgress ( context, value )
    !DEC$ ATTRIBUTES DLLEXPORT::SetProgress
      use ProgressBoxTypes
      ! Arguments
      type(PBContext) context
      integer value
    end function
    integer function DestroyProgressBox( context )
    !DEC$ ATTRIBUTES DLLEXPORT::DestroyProgressBox
      use ProgressBoxTypes
      ! Arguments
      type(PBContext) context
    end function
  end interface
end module ProgressBox

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?