Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 1.63 KB

settings-for-the-progress-control.md

File metadata and controls

21 lines (15 loc) · 1.63 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: Settings for the Progress Control
Settings for the Progress Control
11/04/2016
CProgressCtrl class [MFC], settings
progress controls [MFC], settings
f4616e91-74fa-4000-ba0d-d3ddc0ee075b

Settings for the Progress Control

The basic settings for the progress control (CProgressCtrl) are the range and current position. The range represents the entire duration of the operation. The current position represents the progress that your application has made toward completing the operation. Any changes to the range or position cause the progress control to redraw itself.

By default, the range is set to 0 - 100, and the initial position is set to 0. To retrieve the current range settings for the progress control, use the GetRange member function. To change the range, use the SetRange member function.

To set the position, use SetPos. To retrieve the current position without specifying a new value, use GetPos. For example, you might want to simply query on the status of the current operation.

To step the current position of the progress control, use StepIt. To set the amount of each step, use SetStep

See also

Using CProgressCtrl
Controls