nanogui: Number of timers
Subject:
Re: [nanogui] Number of timers
From:
"Greg Haerr" ####@####.####
Date:
22 Sep 2006 00:56:15 +0100
Message-Id: <099001c6ddd9$831522c0$6401a8c0@winXP>
: I know that in order to reset a timer, you have to kill it and recreate
: it, and of course you get a different ID number.
No, you only have to KillTimer the timer when you want to
change the timeout value.
: So what happens when
: you reach the end of ids?
Well, if you pass a valid hWnd and timerID to SetTimer,
then you can use that same value, rather than the ID
value returned from SetTimer, which is only used when
a NULL hWnd is passed.
:I take it that the ID is an unsigned long?
: Which means it can have 4,294,967,295 IDs before it runs out?
Yes, but no need to worry because of the above
Regards,
Greg