📄 cancelsub.f90
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -