cancelsub.f90

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

F90
19
字号
subroutine CancelSub( dlg, id, callbacktype )
  use ProgressBox
  use user32
  implicit none
  ! Arguments
  type (dialog) dlg
  integer id, callbacktype
  ! Variables
  type(PBContext) context
  pointer ( pc, context )
  integer iret
  ! Set the bCancelled flag in the context block.  
  ! SetProgress checks this flag and returns PBStatus_Aborted
  if (callbacktype == dlg_clicked) then
    !  Get the "context" window property
    pc = GetProp( dlg % hwnd, "PBContext" )
    context % bCancelled = .TRUE.
  endif
end subroutine CancelSub

⌨️ 快捷键说明

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