0 out of 4 rated this helpful - Rate this topic

Progress Bar Control Styles

Applies to: desktop apps only

The following control styles are supported by Progress Bar controls:

ConstantDescription
PBS_MARQUEE

Version 6.0 or later. The progress indicator does not grow in size but instead moves repeatedly along the length of the bar, indicating activity without specifying what proportion of the progress is complete.

Note  Comctl32.dll version 6 is not redistributable but it is included in Windows XP or later. To use Comctl32.dll version 6, specify it in a manifest. For more information on manifests, see Enabling Visual Styles.

PBS_SMOOTH

Version 4.70 or later. The progress bar displays progress status in a smooth scrolling bar instead of the default segmented bar.

Note  This style is supported only in the Windows Classic theme. All other themes override this style.

PBS_SMOOTHREVERSE

Version 6.0 or later and Windows Vista. Determines the animation behavior that the progress bar should use when moving backward (from a higher value to a lower value). If this is set, then a "smooth" transition will occur, otherwise the control will "jump" to the lower value.

PBS_VERTICAL

Version 4.70 or later. The progress bar displays progress status vertically, from bottom to top.

Remarks

You can set progress bar styles, in the same way as other common controls, with CreateWindowEx, GetWindowLong, or SetWindowLong.

Requirements

Header

CommCtrl.h

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Marquee style requires common controls 6.0
It's mentioned elsewhere in the documentation, but not very obvious.  You need to specify the common controls 6.0 to use Marquee style progress bars.  The easiest way to do this is with the following pragma line:

#pragma comment(linker,"\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")

(This requires VS2005 or higher.)