Share via


SB_SETBKCOLOR (Windows Embedded CE 6.0)

1/6/2010

This message sets the background color in a status bar.

To send this message, call the SendMessage function 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
    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

Header commctrl.h
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

Status Bars Messages
Status Bars Reference