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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Progress Bar...

Status
Not open for further replies.

rdalton

Programmer
Dec 5, 2002
24
US
I'm wanting to display a progress bar while the application calls a function that goes out and queries all the serial ports for a certain piece of hardware. Can someone inform me of how to use a progress bar in my dialog app and keep it in close sync with the actual querry time? thanks.

rdalton
 
You can use the Windows Progress Windows common control for systems since Windows 95 or later and NT 4 or later. See the Shell and Common Controls Platform SDK for the API and structure definitions. Look for PBM_STEPIT message as a starting point.

If you using MFC you can use the CProgressCtrl class.

>> keep it in close sync with the actual querry time?

That will be a simple math calculation if you know the query time.

If you don’t then... [bugeyed]

-pete


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top