Solved

Progress Control in MFC

Posted on 1997-03-07
1
662 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

910 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

19 Experts available now in Live!

Get 1:1 Help Now