08-14-2016, 08:03 AM
I have noticed that mouse can move - but not clicked - when function tempf02 runs :
Function tempf02
Function tempf03
Function dialog_with_progres_Clepsy
I cannot explain why. Let me mention that if tempf03 is started and then tempf02 run (without the mac statement) then mouse stands still. I wonder whether there is something wrong with dialog_with_progres_Clepsy.
Any help will be much appreciated.
Function tempf02
Function tempf03
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 0x8 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 cannot explain why. Let me mention that if tempf03 is started and then tempf02 run (without the mac statement) then mouse stands still. I wonder whether there is something wrong with dialog_with_progres_Clepsy.
Any help will be much appreciated.