08-12-2018, 10:01 AM
Empirically, I found that the problem above is due to statement :
if(!ShowDialog("dialog_with_progres_Clepsy" &dialog_with_progres_Clepsy 0)) ret
which it calls the following function:
Function dialog_with_progres_Clepsy
if(!ShowDialog("dialog_with_progres_Clepsy" &dialog_with_progres_Clepsy 0)) ret
which it calls the following function:
Function dialog_with_progres_Clepsy
;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
def PBM_SETRANGE (WM_USER+1)
def PBM_SETPOS (WM_USER+2)
def PBM_DELTAPOS (WM_USER+3)
;BEGIN DIALOG
;0 "" 0x90000844 0x88 0 0 44 15 ""
;3 msctls_progress32 0x54000008 0x4 2 2 40 12 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2040308 "" "" "" ""
ret
;messages
;you can change these values
int step=1
int timerperiod=250 ;;should be >=50 (in msec)
int hpb=id(3 hDlg)
str s
sel message
,case WM_INITDIALOG
,DT_Init(hDlg lParam)
,SetTimer hDlg 1 timerperiod 0
,ret 1
,
,case WM_TIMER
,SendMessage hpb PBM_SETPOS 0 0
,
,case WM_DESTROY DT_DeleteData(hDlg)
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK DT_Ok hDlg
,case IDCANCEL DT_Cancel hDlg
ret 1
I would appreciate any comments and/or advice.