Showing progress bar in a status bar pane (3)

Assuming that most of the time when you are about to start a long operation, you want to show a short text in the leftmost plain-vanilla text pane, and immediately next to it a progress bar, a nice solution would be not to disturb the content of the status bar, create a progress control, initialize and advance it until operation is complete, then return the status bar to its initial state (idle text). This way, you do not have to add/remove panes in the status bar neither to resize or otherwise alter the panes, because usually all panes on a status bar are grouped rightmost, and the remaining space is used for regular text messages.

This can be best achieved by deriving a class from CStatusBar and adding a CProgressCtrl child in it. We can then add members to the new CStatusBarWithProgress to hide/show and control the progress bar.

All these prepared, you can now open up your frame class' header, and simply change CStatusBar with our new CStatusBarWithProgress. That's all.

Header file

Implementation file



Comments

  • Source & Sample File Up Load..

    Posted by Legacy on 06/24/1999 12:00am

    Originally posted by: Yong Jin Nam

    hi.Farkas.
    please running source file and sample file upload...
    good luck

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Today's agile organizations pose operations teams with a tremendous challenge: to deploy new releases to production immediately after development and testing is completed. To ensure that applications are deployed successfully, an automatic and transparent process is required. We refer to this process as Zero Touch Deployment™. This white paper reviews two approaches to Zero Touch Deployment--a script-based solution and a release automation platform. The article discusses how each can solve the key …

  • On-demand Event Event Date: December 18, 2014 The Internet of Things (IoT) incorporates physical devices into business processes using predictive analytics. While it relies heavily on existing Internet technologies, it differs by including physical devices, specialized protocols, physical analytics, and a unique partner network. To capture the real business value of IoT, the industry must move beyond customized projects to general patterns and platforms. Check out this webcast and join industry experts as …

Most Popular Programming Stories

More for Developers

RSS Feeds