Set
Set the current position of the progress bar. This value is typically within range set by the SetRange method
BOOL Set( int nCurrent )
TRUE normally, FALSE if user has clicked the Cancel or End button prior to this method was called
EX1
void progressBox_Set_ex1() { int iMax = 10, iMin = 0; progressBox prgbBox("This is a ProgressBox example:"); prgbBox.SetRange(iMin, iMax); for (int ii=iMin; ii<=iMax; ii++) { if(prgbBox.Set(ii)) printf("Hi, it is now at %d.\n", ii); else { out_str("User abort!"); break; } LT_execute("sec -p 0.5"); } }
progressBox::SetRange
origin.h