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. Managed C++/CLI
  4. How can I update my status-bar in MFC?

How can I update my status-bar in MFC?

Scheduled Pinned Locked Moved Managed C++/CLI
questionc++helpannouncement
2 Posts 2 Posters 8 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.
  • M Offline
    M Offline
    Member 15033704
    wrote on last edited by
    #1

    Hello everybody I have modified status bar in CMyMainFrame class to show current time.In fact I have added an Indicator_ID to add a place next to the other 3 default indicators on status bar(Caps lock/Num lock/Scroll lock). It generally works and show current time, But problem is that current time is updated just when I move the mouse or click somewhere. How can I update that pragmatically from inside the project? Best Regards.

    L 1 Reply Last reply
    0
    • M Member 15033704

      Hello everybody I have modified status bar in CMyMainFrame class to show current time.In fact I have added an Indicator_ID to add a place next to the other 3 default indicators on status bar(Caps lock/Num lock/Scroll lock). It generally works and show current time, But problem is that current time is updated just when I move the mouse or click somewhere. How can I update that pragmatically from inside the project? Best Regards.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      This has nothing to do with Managed C++/CLI. Please use the correct forum for your questions. You already have a question in the MFC forum. And the answer to your question is simply to use a timer as described at SetTimer function (winuser.h) - Win32 apps | Microsoft Docs[^].

      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