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
|
| (HWND) hWndControl,
| // handle to destination control
|
| (UINT) PBM_SETBKCOLOR,
| // message ID
|
| (WPARAM) wParam,
| // = 0; not used, must be zero |
| (LPARAM) 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
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 |
|---|