progressBox
A progress dialog box is a small dialog box used to indicate that software is busy processing data. The dialog box contains a progress bar indicating the fraction of processing that has been completed. The progress dialog box is generally used in conjunction with some sort of iterative loop. The progressBox class provides methods and properties needed to open and control progress dialog boxes.
EX1
void progressBox_ex1(int imax = 100) { progressBox aa("This is an example:", PBOX_TOPMOST, imax < 20? true:false); aa.SetRange(0,imax); string str; for(int ii = 0; ii < imax; ii++) { str.Format("Current at %d", ii); if(aa.Set(ii)) { aa.SetText(str, PBOXT_TITLE); } else { out_str("User abort!"); break; } SetStatusBarText(str); LT_execute("sec -p 0.5"); // wasting some time } }
origin.h