PBM_SETBARCOLOR message

Sets the color of the progress indicator bar in the progress bar control.

Parameters

wParam

Must be zero.

lParam

The COLORREF value that specifies the new progress indicator bar color. Specifying the CLR_DEFAULT value causes the progress bar to use its default progress indicator bar color.

Return value

Returns the previous progress indicator bar color, or CLR_DEFAULT if the progress indicator bar color is the default color.

Remarks

When visual styles are enabled, this message has no effect.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h