Help Center

CProgBar.SetBkColormethod

Sets the background color in the progress bar.

WindowsmethodCProgBar.incdocumented

Syntax

FUNCTION SetBkColor (BYVAL hProgBar AS HWND, BYVAL clrBk AS COLORREF) AS COLORREF

Parameters

NameDescription
hProgBarA handle to a progress bar.
clrBkCOLORREF value that specifies the new background color. Specify the CLR_DEFAULT value to cause the progress bar to use its default background color.

Return value

Returns the previous background color, or CLR_DEFAULT if the background color is the default color.

Description

Sets the background color in the progress bar.

Remarks

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

Reference

  • Include file CProgBar.inc
  • Defined in AfxNova/CProgBar.inc:191
  • Documented in Windows/WIndows Controls/CProgBar.md
  • Topic: CProgBar Class