Link to home
Start Free TrialLog in
Avatar of Aphroditus
Aphroditus

asked on

Two settimers at the same time

Dear experts,

I need to have two timers which time two different actions in my app.
Is it possible to have two timers at one time? If yes, how can I achieve this?

Avatar of bertp
bertp

yes, just use different IDs when setting up the timers.   parameters sent with the WM_TIMER message will tell you which timer the message is servicing
Yes, just use different timer IDs as bertp already said. See

http://msdn.microsoft.com/isapi/msdnlib.idc?theURL=/library/psdk/winui/timers_1voy.htm
ASKER CERTIFIED SOLUTION
Avatar of elston_sa
elston_sa

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
elston_sa's code is almost the same as the code shown on the page I provided.
Avatar of Aphroditus

ASKER

Thanks! It works well...
Thanks to you too chensu. :)