Solved

Progress Control in MFC

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C++ get user from AD  (VS6) 7 95
IdTCPClient1->Disconnect(); not working 3 86
C++ question 3 74
trigs fail! I thought I knew how to do trignometry 3 83
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…
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 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.

733 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