I cannot determine whether the basic Timer is a one-shot or recurring timer.

If the answer is 'recurring', I assume that the KillTimer function could be use to make it one-shot.

Please help.
Posted on 2003-05-17 17:53:55 by msmith
Do you mean the timer that sends you WM_TIMER msg? Then, the timer is 'recurring'. It sends you WM_TIMER msg at the interval you specified until you KillTimer().
Posted on 2003-05-17 18:04:08 by Starless
Thanks, that's what I wanted to know.
Posted on 2003-05-17 23:06:25 by msmith
Is it possible to reset the interval parameter to 0 in order to disable (but keep) the timer?
Posted on 2003-05-17 23:15:12 by msmith
You could just stop processing the WM_TIMER message or if you're using a callback stop processing there. There is no way to pause this type of timer. You can create it with a unique ID that you define then kill the timer when you're done and recreate it with the same ID when you need it to restart. That's about the only way I can think of doing it. To use your own ID numbers you have to supply it a window handle.
Posted on 2003-05-17 23:24:24 by donkey