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

  • Flash technology is becoming more prominent in the storage industry. Offering superior speed and reliability when compared to traditional hard disk drives – flash storage is a flexible and increasingly cost-effective technology that can be used to optimize enterprise storage environments. This ebook explores the many uses and benefits of flash storage technology in the enterprise. Check it out to discover and learn all you need to: Optimize storage performance Leverage server flash as storage cache …

  • With 81% of employees using their phones at work, companies have stopped asking: "Is corporate data leaking from personal devices?" and started asking: "How do we effectively prevent corporate data from leaking from personal devices?" The answer has not been simple. ZixOne raises the bar on BYOD security by not allowing email data to reside on the device. In addition, Zix allows employees to maintain complete control of their personal device, therefore satisfying privacy demands of valued employees and the …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds