Click here to Skip to main content
15,911,327 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using visual Studio 2010 , developing an MFC dialog based application, where I have placed Progress bar Control.
I have placed the default progress Bar Control from the Tool Box. Now as I want to change the look and feel of Progress Bar control and also want place Time renaming text on the Progress Bar control. can you please suggest me some ideas.

Wanted a Flat MFC Progress bar Control.
Posted

Hi

you can use .net controls into MFC and it can be really useful so just look at here ;-)

Hosting Windows Forms User Control in MFC Dialogs[^]

Best Regards.
 
Share this answer
 
Comments
preang 21-Jan-14 5:00am    
thanks for the reply.. but my requirement is only using VC++ .Net Controls can not use as of now as I hope it requires .net framework to be present in the system.
1. We can use API ::SetWindowTheme(HWND,_T(""),_T(""). HWND can be control variable of your progress bar which will make it appear as a Flat progress bar.

2. Another way I figured out not using CProgressbar Control completely. We can derived our own class from CStatic and define OnPaint message of our class for example

MyProgress::Onpaint()
{

}

Where we can draw rectangle to fill as Progress on the static box. Also can differ other functions as Setrange(),SetPos(),SetpIt() etc. to behave as like Progressbar also display text on it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900