【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.6.23.5 progressBox::Set
Contents
Description
Set the current position of the progress bar. This value is typically within range set by the SetRange method
Syntax
BOOL Set( int nCurrent )
Parameters
- nCurrent
- [output] the current progress bar position
Return
TRUE normally, FALSE if user has clicked the Cancel or End button prior to this method was called
Examples
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"); } }
Remark
See Also
Header to Include
origin.h