Help Center

CProgBar.GetBkColormethod

Gets the background color of the progress bar.

WindowsmethodCProgBar.incdocumented

Syntax

FUNCTION GetBkColor (BYVAL hProgBar AS HWND) AS COLORREF

Parameters

NameDescription
hProgBarA handle to a progress bar.

Return value

Returns the background color of the progress bar.

Description

Gets the background color of the progress bar.

Remarks

This is the color set by the PBM_SETBKCOLOR message. The default value is CLR_DEFAULT, which is defined in commctrl.bi.

This function only affects the classic mode, not any visual style.

Reference

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