Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stop a timer from outside the dialogue routine
#1
I need to stop a timer in a dialogue routine, from another routine outside this dialogue. So far I am using a globar variable, by changing its value I invoke KillTimer in the dialogue to stop timer. I wonder whether there exist a more elegant way to do it.

Thanks in advance,
Simos
#2
SetTimer and KillTimer work from outside dialog, even from other thread in same process. Just need to know dialog window handle and timer id that was passed to SetTimer.

Macro Macro1819
Code:
Copy      Help
int w=win("Dialog" "#32770")
KillTimer w 1
#3
Perfect !
Best personal regards, Simos.


Forum Jump:


Users browsing this thread: 1 Guest(s)