Settings for the Progress Control

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at 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