Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
4/8/2010
This message sets the background color in a status bar.
To send this message, call the SendMessagefunction as follows.
Syntax
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
-
COLORREFvalue 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
Header | commctrl.h |
Windows Embedded CE | Windows CE 1.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |