Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Progress Control in MFC

Posted on 1997-03-07
1
Medium Priority
?
671 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 100 total points
ID: 1162275
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
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 be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

876 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