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. updating status bar

updating status bar

Scheduled Pinned Locked Moved C / C++ / MFC
databasequestionannouncement
4 Posts 2 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.
  • R Offline
    R Offline
    RalfPeter
    wrote on last edited by
    #1

    Hi folks, Got a Q re updating text on a status bar after changing focus from an application. I have a program I wrote that updates a database and shows the numbers of records processed on the status bar. When I change focus from that program the counter stops and when I subsequently go back to it, the numbers of recds processes stay frozen. What can I do to update the status bar once the program regains focus? Thx, Ralf.

    ralf.riedel@usm.edu

    L 1 Reply Last reply
    0
    • R RalfPeter

      Hi folks, Got a Q re updating text on a status bar after changing focus from an application. I have a program I wrote that updates a database and shows the numbers of records processed on the status bar. When I change focus from that program the counter stops and when I subsequently go back to it, the numbers of recds processes stay frozen. What can I do to update the status bar once the program regains focus? Thx, Ralf.

      ralf.riedel@usm.edu

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      are you using MFC and UpdateCmd mechanism?

      led mike

      R 1 Reply Last reply
      0
      • L led mike

        are you using MFC and UpdateCmd mechanism?

        led mike

        R Offline
        R Offline
        RalfPeter
        wrote on last edited by
        #3

        Using MFC and in CMainFrame() I have the following code. That's all I have for code handling the status bar. void CMainFrame::UpdateStatus(UINT nPane, CString str) { this->m_wndStatusBar.SetPaneText(nPane, str); }

        ralf.riedel@usm.edu

        L 1 Reply Last reply
        0
        • R RalfPeter

          Using MFC and in CMainFrame() I have the following code. That's all I have for code handling the status bar. void CMainFrame::UpdateStatus(UINT nPane, CString str) { this->m_wndStatusBar.SetPaneText(nPane, str); }

          ralf.riedel@usm.edu

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          You should do some reading about the MFC macro ON_UPDATE_COMMAND_UI and associated framework implementation.

          led mike

          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