How to make a progress bar?

I wanna know how to make a progress bar so that the progress of video encoding can be shown on a dialog box. Please send me some source code.
Thanks
makoto_liangAsked:
Who is Participating?
 
Vinayak KumbarConnect With a Mentor Sr Program ManagerCommented:
Hi,

Follow the steps.
1. Add the progeass bar control into dialog template and give the ID as ID_PROGRESS.
2. Add the control variable to it using class wizard say m_Progress of type CProgressCtrl
3. Then Initialise the progress bar as
m_Progress.SetRange(Min, Max);
m_Progress.SetPos(0);
m_Progress.SetStep(1);
4. Then to increament it use
m_Progress.StepIt();

Thats it. If U want the sample, give me Ur mail ID, I will send it to U

Cheers,
VinExpert.
0
 
waseemanisCommented:
The answer by VinExpert is just fine..but there a another short route. You can add the progress bar component from the VC Component gallary. Because it gives you the code too, It can be customized.
0
All Courses

From novice to tech pro — start learning today.