CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Pausing a timer

  1. #1
    Join Date
    Jun 2001
    Posts
    25

    Pausing a timer

    Just wondering if there is a simple way to pause a timer. What I want to do is have the timer stop when an a certain action is performed then pick up where it left off, instead of using SetTimer/KillTimer which would reset it back to the start of the count.

    Any help would be appreciated.
    Thanks.
    Dan.


  2. #2
    Join Date
    Oct 2000
    Location
    India
    Posts
    4,620

    Re: Pausing a timer

    Hi,

    Keep the variable that you are incrementing in the timer in the header and dont reset it back to the count. You can still use KillTimer. All Luck.

    [b]If the answer REALLY helps and if you want to, you can Rate it.
    Visit http://www.geocities.com/contactgirish/homepage.html for some VC++ Links & Notes.All Luck,
    V.Girish
    All luck and have a great day.

    Regards,
    V.Girish

    Visit www.geocities.com/contactgirish for Source code, Tutorials, FAQs and Downloads.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured