Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to do Timers in MFC

How to do Timers in MFC

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorial
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    waxie
    wrote on last edited by
    #1

    Hi guys, I really really need your help. I have been tinkering with the CWnd timer functions for days now and I really could not understand its concept. I tried doing a "timer-like" simulation using a simple dialog box with just a number that increments. Sounds really lousy but I really just want to do that with the CWnd::SetTimer and CWnd::OnTimer. I just want to see how it works, what executes when I set a timer duration of 1 second. What goes to where. I'd really really appreciate it if you could help me with some explanations, or better yet, a simple code with that dialog box timer i could not complete.:-O Miss programmer in distress, :rose: X| waxie

    M T U H 4 Replies Last reply
    0
    • W waxie

      Hi guys, I really really need your help. I have been tinkering with the CWnd timer functions for days now and I really could not understand its concept. I tried doing a "timer-like" simulation using a simple dialog box with just a number that increments. Sounds really lousy but I really just want to do that with the CWnd::SetTimer and CWnd::OnTimer. I just want to see how it works, what executes when I set a timer duration of 1 second. What goes to where. I'd really really appreciate it if you could help me with some explanations, or better yet, a simple code with that dialog box timer i could not complete.:-O Miss programmer in distress, :rose: X| waxie

      M Offline
      M Offline
      Maxwell Chen
      wrote on last edited by
      #2

      waxie wrote:

      I just want to see how it works, what executes when I set a timer duration of 1 second. What goes to where.

      Trace into the MFC source code for CWnd::SetTimer.


      Maxwell Chen

      1 Reply Last reply
      0
      • W waxie

        Hi guys, I really really need your help. I have been tinkering with the CWnd timer functions for days now and I really could not understand its concept. I tried doing a "timer-like" simulation using a simple dialog box with just a number that increments. Sounds really lousy but I really just want to do that with the CWnd::SetTimer and CWnd::OnTimer. I just want to see how it works, what executes when I set a timer duration of 1 second. What goes to where. I'd really really appreciate it if you could help me with some explanations, or better yet, a simple code with that dialog box timer i could not complete.:-O Miss programmer in distress, :rose: X| waxie

        T Offline
        T Offline
        toxcct
        wrote on last edited by
        #3

        Timer uses hardware interupts. why do you need to know how it is implemented ? why not simply use it ??


        TOXCCT >>> GEII power

        [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

        1 Reply Last reply
        0
        • W waxie

          Hi guys, I really really need your help. I have been tinkering with the CWnd timer functions for days now and I really could not understand its concept. I tried doing a "timer-like" simulation using a simple dialog box with just a number that increments. Sounds really lousy but I really just want to do that with the CWnd::SetTimer and CWnd::OnTimer. I just want to see how it works, what executes when I set a timer duration of 1 second. What goes to where. I'd really really appreciate it if you could help me with some explanations, or better yet, a simple code with that dialog box timer i could not complete.:-O Miss programmer in distress, :rose: X| waxie

          U Offline
          U Offline
          uday kiran janaswamy
          wrote on last edited by
          #4

          hi, what is there you just implement the Api called ::SetTimer(...) ::KillTimer(...) // surf in google you get no of examples. Think Clever

          Uday kiran

          1 Reply Last reply
          0
          • W waxie

            Hi guys, I really really need your help. I have been tinkering with the CWnd timer functions for days now and I really could not understand its concept. I tried doing a "timer-like" simulation using a simple dialog box with just a number that increments. Sounds really lousy but I really just want to do that with the CWnd::SetTimer and CWnd::OnTimer. I just want to see how it works, what executes when I set a timer duration of 1 second. What goes to where. I'd really really appreciate it if you could help me with some explanations, or better yet, a simple code with that dialog box timer i could not complete.:-O Miss programmer in distress, :rose: X| waxie

            H Offline
            H Offline
            Hamid Taebi
            wrote on last edited by
            #5

            See Working with Timers in Visual C++[^]

            _**


            **_

            WhiteSky


            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups