Resetting the WM_TIMER

This is a discussion on Resetting the WM_TIMER within the Windows Programming forums, part of the Platform Specific Boards category; Is there any way to "reset" the WM_TIMER...as in just restart? Or will I have to Killtimer, and then SetTimer ...

  1. #1
    Registered User
    Join Date
    Dec 2002
    Posts
    25

    Resetting the WM_TIMER

    Is there any way to "reset" the WM_TIMER...as in just restart? Or will I have to Killtimer, and then SetTimer again?

    For example, if i have a timer that outputs a WM_TIMER message every 5 seconds, and a specific thing happens in the middle of these 5 seconds, I want this timer to restart, as in, start the 5 seconds again.

    I know I can kill the timer and set it again, but I'm wondering if this is inefficient and if there is a better way to do it...Thanks!

    Nimit

  2. #2
    Registered User
    Join Date
    Dec 2002
    Posts
    25
    well actually I kind of figured out a way around it, but I would still like to know if this is possible. Thanks!

    Nimit

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. ofstream resetting get pointer position
    By pobri19 in forum C++ Programming
    Replies: 12
    Last Post: 12-08-2008, 09:18 AM
  2. Resetting an array
    By Canadian0469 in forum C Programming
    Replies: 5
    Last Post: 11-12-2007, 10:36 AM
  3. Resetting stdin after EOF
    By o0zi in forum C Programming
    Replies: 4
    Last Post: 05-22-2005, 08:04 AM
  4. Resetting virtual keys
    By WalkerBurgin in forum Windows Programming
    Replies: 2
    Last Post: 08-18-2004, 10:31 PM
  5. Linked list not resetting between functions
    By dbyte in forum C Programming
    Replies: 7
    Last Post: 08-10-2003, 08:56 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21