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

ProgressBar associated to a function

Status
Not open for further replies.

Casiopea

Programmer
Jan 15, 2003
47
ES
I want to associate a ProgreesBar to several functions (but they don't work at the same time). The point is that I have read that I should create a worker thread. On that worker thread I must include the call to the progressbar functions(step) and from the application create the thread. My doubts are:
1. how should I step the progressbar if I don't know how long the function takes;
2. the worker thread can be declared and used in a member function of the Dialog class which contain the progress bar? Otherwise, should I create a class for the worker thread?
The functions are called from the menu inserted in the dialog box.
Thank you very much for any tip.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top