Set the maximum value.

Call:

ts_dialogcontrol(int iProgressBar, "SetMax", int maxvalue);


Here:

maxvalue - the maximum value up to which to calculate the percentage of completion.