CProgressCtrl Class
Provides the functionality of the Windows common progress bar control.
class CProgressCtrl : public CWnd
Members
Public Constructors
Name |
Description |
---|---|
Constructs a CProgressCtrl object. |
Public Methods
Name |
Description |
---|---|
Creates a progress bar control and attaches it to a CProgressCtrl object. |
|
Creates a progress control with the specified Windows extended styles and attaches it to a CProgressCtrl object. |
|
Gets the color of the progress indicator bar for the current progress bar control. |
|
Gets the background color of the current progress bar. |
|
Gets the current position of the progress bar. |
|
Gets the lower and upper limits of the range of the progress bar control. |
|
Gets the state of the current progress bar control. |
|
Retrieves the step increment for the progress bar of the current progress bar control. |
|
Advances the current position of a progress bar control by a specified increment and redraws the bar to reflect the new position. |
|
Sets the color of the progress indicator bar in the current progress bar control. |
|
Sets the background color for the progress bar. |
|
Turns marquee mode on or off for the current progress bar control. |
|
Sets the current position for a progress bar control and redraws the bar to reflect the new position. |
|
Sets the minimum and maximum ranges for a progress bar control and redraws the bar to reflect the new ranges. |
|
Sets the state of the current progress bar control. |
|
Specifies the step increment for a progress bar control. |
|
Advances the current position for a progress bar control by the step increment (see SetStep) and redraws the bar to reflect the new position. |
Remarks
A progress bar control is a window that an application can use to indicate the progress of a lengthy operation. It consists of a rectangle that is gradually filled, from left to right, with the system highlight color as an operation progresses.
A progress bar control has a range and a current position. The range represents the total duration of the operation, and the current position represents the progress the application has made toward completing the operation. The window procedure uses the range and the current position to determine the percentage of the progress bar to fill with the highlight color. Because the range and current position values are expressed as signed integers, the possible range of current position values is from –2,147,483,648 to 2,147,483,647 inclusive.
For more information on using CProgressCtrl, see Controls and Using CProgressCtrl.
Inheritance Hierarchy
CProgressCtrl
Requirements
Header: afxcmn.h