Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I access a progress bar? 1

Status
Not open for further replies.

jvff

Programmer
Apr 1, 2001
64
BR
Hello,
I have just putted a progress bar on a dialog. I would like to, when the user presses a button the position would go to 100%. How can I do that? Thank you,

JVFF :)
 
Have you read MSDN? John Fill
1c.bmp


ivfmd@mail.md
 
Hi

I agree with John, it's very easy ... but here is how to do.

Add a Progress Control in your dialogbox and use ClassWizard to create a member variable, say m_Progress.

In OnInitDialog:

m_Progress.SetRange( 0, 100);
m_Progress.SetPos( 0);

In the handler of your button:

m_Progress.SetPos( 100);

That's it !!!

HTH

Thierry
EMail: Thierry.Marneffe@swing.be
WebSite:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top