IASProgressBar::put_Max

This method sets the maximum value of the progress bar.

Syntax

HRESULT put_Max( long lMax );

Parameters

lMax
Long integer that specifies the maximum value of the progress bar.

Return Values

NOERROR indicates success. E_INVALIDARG indicates that an invalid argument has been entered.

Remarks

If you set the maximum value of the progress bar to a value that is less than the current minimum value of the progress bar, the minimum value of the progress bar is reset to the value specified for the maximum value of the progress bar.

See Also

IASProgressBar::get_Max