How to Know If a Timer Has Finished?

closed account (zb0S216C)
I'm trying to figure out how I can check if the timer has finished. I'm using the SetTimer( ) function from within <Windows.h>.

How will I know if the SetTimer( ) function has finished counting down? Does it post a message of some sort?

if you wan't the code, just ask :)

Thanks.

Wazzak
It does post a message, yes: WM_TIMER. You can read about it @ http://msdn.microsoft.com/en-us/library/ms644906(VS.85).aspx .
Does it post a message of some sort?
Yes, it sends WM_TIMER message. Alternatively you can pass a callback function to SetTimer()

SetTimer(): http://msdn.microsoft.com/en-us/library/ms644906(v=vs.85).aspx
WM_TIMER: http://msdn.microsoft.com/en-us/library/ms644902(v=vs.85).aspx
closed account (zb0S216C)
Thank you :)

Wazzak
Topic archived. No new replies allowed.