1. Common functions
Setrange (0,100) sets the range;
Setstep (int I) sets the step size;
Stepit (); increment the progress in one step;
Int setpos (INT NPOs) sets the current position, which can be used for initialization;
Int getpos () to get the current progress;
2. Set the control progress control variable.
3.
M_progressfile.setpos (0); // initialization progress bar Int J = 0; For (INT I = 0; I <ISEL; I ++) {int ik = m_listfiles.getcheck (I ); if (m_listfiles.getcheck (I) = 1) {J ++;
} M_progressfile.setrange (0, J); // progress bar range m_progressfile.setstep (1); // step for (INT I = 0; I <ISEL; I ++) {int ik = m_listfiles.getcheck (I); If (m_listfiles.getcheck (I) = 1) {m_listfiles.gettext (I, strfilename); readcodefile (strfilepath + "\" + strfilename, strpath + "\" + strfilename); m_progressfile.stepit (); // incremental progress in one step }}