Solved

Progress Control in MFC

Posted on 1997-03-07
1
658 Views
Last Modified: 2010-05-18
How can I make the progress control in MFC be a solid bar rather than a segmented bar?  If I cannot do it with MFC then how can I do it.  So many apps have the solid bar with the % complete in the middle of the bar.
0
Comment
Question by:gemme
1 Comment
 
LVL 11

Accepted Solution

by:
mikeblas earned 50 total points
Comment Utility
MFC doesn't implement the control you're referring to; it's implemented by Windows.  Windows doesn't provide for having the control draw a solid bar.

You can make your own control very readily: just draw a rectangle.  Fill the left percentage with the rectangle with one colour, and the balance of the rectangle with the window background colour.

.B ekiM

0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now