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

  • Live Event Date: December 11, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT Market pressures to move more quickly and develop innovative applications are forcing organizations to rethink how they develop and release applications. The combination of public clouds and physical back-end infrastructures are a means to get applications out faster. However, these hybrid solutions complicate DevOps adoption, with application delivery pipelines that span across complex hybrid cloud and non-cloud environments. Check out this …

  • On-demand Event Event Date: October 29, 2014 It's well understood how critical version control is for code. However, its importance to DevOps isn't always recognized. The 2014 DevOps Survey of Practice shows that one of the key predictors of DevOps success is putting all production environment artifacts into version control. In this webcast, Gene Kim discusses these survey findings and shares woeful tales of artifact management gone wrong! Gene also shares examples of how high-performing DevOps …

Most Popular Programming Stories

More for Developers

RSS Feeds