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. Timer on Statusbar

Timer on Statusbar

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 3 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.
  • S Offline
    S Offline
    susanne1
    wrote on last edited by
    #1

    Hallo, i need to display a timer in the statusbar to show how much time the application need to do a task, if the application is Idle the time shown in the statusbar is 00:00:00(i alreday have this done) but if the applicatioon is busy the timer should display the time has benn requierd. How can i do this and in which files of my SDI-Application please.

    R D 2 Replies Last reply
    0
    • S susanne1

      Hallo, i need to display a timer in the statusbar to show how much time the application need to do a task, if the application is Idle the time shown in the statusbar is 00:00:00(i alreday have this done) but if the applicatioon is busy the timer should display the time has benn requierd. How can i do this and in which files of my SDI-Application please.

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      Start a timer (have it fire every 1000 ms) when your application starts the task (Should be done on a separate thread if it is lengthy. Because timer messages won't pile up). Use thread synchronization to know when the thread exits and kill your timer there. The timer event handler must have the code to display the time taken.

      It is a crappy thing, but it's life -^ Carlo Pallini

      1 Reply Last reply
      0
      • S susanne1

        Hallo, i need to display a timer in the statusbar to show how much time the application need to do a task, if the application is Idle the time shown in the statusbar is 00:00:00(i alreday have this done) but if the applicatioon is busy the timer should display the time has benn requierd. How can i do this and in which files of my SDI-Application please.

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        See here.

        "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        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