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?
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?
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
http://msdn.microsoft.com/isapi/msdnlib.idc?theURL=/library/psdk/winui/timers_1voy.htm
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
elston_sa's code is almost the same as the code shown on the page I provided.
ASKER
Thanks! It works well...
Thanks to you too chensu. :)
Thanks to you too chensu. :)