Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This message sets the background color in a status bar.
To send this message, call the SendMessage function as follows.
lResult = SendMessage( // returns LRESULT in lResult (HWND) hWndControl, // handle to destination control (UINT) SB_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 status 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.
Requirements
OS Versions: Windows CE 1.0 and later.
Header: Commctrl.h.
See Also
Status Bars Messages | Status Bars Reference
Send Feedback on this topic to the authors