Window-based DialogsClass ts_dialogcontrolProgressBar GetMax Read the current value of the element parameter. Call: ts_dialogcontrol(iProgressBar, "GetMax", int &value); Here: value - read value.