Scenario:
I hav set a timer using SetTimer(),after timeout my application gets a WM_TIMER and it exits.
I Want: to pause this timer before a particular process and again restart it when the process gets over,so tht there is no timeout during this process and my application doesnt exit during this process.how can i pause a timer and again restart it starting from the paused time.Plzzzzz help........
risa
0
Light Poster
Recommended Answers
Jump to PostOne way is to stop the timer before the process starts then restart it after it finished
KillTimer(hWnd, uIDEvent); // stop the timer // Do some processing here SetTimer( hWnd, uIDEvent, uElapse, lpTimerFunc); // restart timer
All 3 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
risa
0
Light Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.