Ets_Progress_Bar_Handle_Max_Set()
Abstract
Changes the maximum value of a progress bar.
Syntax
Ets_Progress_Bar_Handle_Max_Set (progress_bar, max_value)
| Argument | Type | Description |
|---|---|---|
progress_bar |
EtsT_Progress_Bar_Handle |
Progress bar of interest. |
max_value |
int |
New maximum value, or ETSC_PROGRESS_BAR_INDETERMINATE. |
Return Type
void
No return value.
Header
ets_api_pbar.h
Details
This function applies a new maximum value to the specified progress bar range without changing the title or current setting of the progress bar. The length of the progress bar is adjusted to match the new range.
A frequent use of this function is to change an indeterminate progress bar to a determinate one, or vice versa. After changing to a determinate bar, you will probably want to set the current progress to zero as well, by using Ets_Progress_Bar_Handle_Progress_Set(). (You can use Ets_Progress_Bar_Handle_Reset() to set both the maximum value and current progress with one call.)
This function replaces the older function Ets_Progress_Bar_End_Change().