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.

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().

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com