SetText
Set the progress dialog title, or the labels inside the dialog
BOOL SetText( LPCSTR lpcszText, int nPosition = PBOXT_TITLE )
TRUE if success, FALSE if nPosition not a valid input
EX1
void progressBox_SetText_ex1() { int imax = 100; progressBox aa("This is an example:", PBOX_TOPMOST); aa.SetRange(0,imax); string str; for(int ii = 0; ii < imax; ii++) { if(aa.Set(ii)) { str.Format("Current at %d", ii); aa.SetText(str, PBOXT_TITLE); } else { out_str("User abort!"); break; } LT_execute("sec -p 0.5"); // wasting some time aa.SetText("Text at top left corner...", PBOXT_TOPLEFT); aa.SetText("text at mid center above progress bar", PBOXT_MIDCENTER); } }
origin.h