Sets the background color in the progress bar.
Syntax
To send this message, call the
SendMessage
function as follows.
lResult = SendMessage( // returns LRESULT in lResult
hWndControl, // (HWND) handle to destination control
PBM_SETBKCOLOR, // (UINT) message ID
wParam, // = 0; not used, must be zero
lParam // = (LPARAM)(COLORREF) clrBk;
);
Parameters
- wParam
-
Must be zero.
- clrBk
- COLORREF 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.
Remarks
When visual styles are enabled, this message has no effect.
Message Information
| Minimum DLL Version | comctl32.dll version 4.71 or later |
|---|
| Header | commctrl.h |
|---|
| Minimum operating systems |
Windows 2000, Windows NT 4.0 with Internet Explorer 4.0, Windows 98, Windows 95 with Internet Explorer 4.0 |
|---|