Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Progress bar
#2
Probably will need 2 threads.
Thread 1 does something, eg copies files.
Thread 2 shows a dialog with a progress bar control.
Thread 1 (or thread 2) periodically somehow calculates how mush % of the work is done and sends PBM_SETPOS messages to the control.
Can be in single thread, if it is possible to process messages while doing that something.
Programming with progress bars usually is difficult because in most cases you don't know exactly the speed of that something, etc. I cannot give a general solution.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)