⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 calldlgstart.f90

📁 Intel Visual Fortran 应用程序开发 周振红编著
💻 F90
字号:
SUBROUTINE calldlgStart( dlg, id, callbacktype )
  use iflogm
  use ProgressBox
  implicit none
  ! Arguments
  type (dialog) dlg
  integer id, callbacktype
  ! Variables
  include 'resource.fd'
  type (PBContext) context
  integer iret
  logical lret
  integer progress
  logical bCancelled
  if (callbacktype == dlg_clicked) then
    ! Change the dialog message
    lret = DlgSet( dlg, IDC_MESSAGE, "执行..." )
    call DlgFlush( dlg )
    ! Create the progress dialog box
    ! We specify the main dialog as the parent window
    iret = DisplayProgressBox( context, dlg % hwnd,"DLL中的对话框", .TRUE.) 
    if ( iret == PBStatus_OK ) then
      bCancelled = .FALSE.
      progress = 0
      ! Perform the work, updating the progress bar as we go along...
      do while ( ( bCancelled == .FALSE. ) .and. ( progress < 101 ) )
        iret = SetProgress ( context, progress )
        if ( iret == PBStatus_Aborted ) then
          bCancelled = .TRUE.
        else
          call sleepqq(250)		! Wait .25 seconds, 100 times
        end if
        progress = progress + 1
      end do
      ! Destroy the progress box
      iret = DestroyProgressBox( context )
    end if
    ! Change the dialog message
    lret = DlgSet( dlg, IDC_MESSAGE, "点击'启动'按钮以执行任务" )
  endif
END SUBROUTINE calldlgStart

⌨️ 快捷键说明

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