Win32 API SetTimer in a loop
is it possible to have a SetTimer() function inside a loop? Inside WM_TIMER I have a KillTimer() function and it prematurelly ends the loop for SetTimer(). Here's a bit of code, which should draw vertical lines every second with a 10 point incrementation in their X coordinate. Once I reach the end of the dialog box, SetTimer() should be called again but this time all new lines need to be 1 point to the right of the previous ones. This loop happens 10 times and it should make the whole width of the dialog box in random colors. int x5 = 0 ; int y5 = 10; int y6 = 100; //DrawTimer points global va
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.