Partager via


RB_SETBKCOLOR (Compact 2013)

3/28/2014

This message sets a rebar control's default background color.

Syntax

RB_SETBKCOLOR wParam = 0; 
    lParam = (LPARAM)(COLORREF)clrBk;

Parameters

  • wParam
    Not used.
  • clrBk
    COLORREF value that represents the new default background color.

Return Value

Returns a COLORREF value that represents the previous default background color.

Remarks

The rebar control's default background color is used to draw the background in a rebar control and all bands that are added after this message has been sent. The default background color for a particular band can be overridden by setting the RBBIM_COLORS flag in fMask and setting clrBack in the REBARBANDINFO structure when a band is added or modified.

Requirements

Header

commctrl.h

See Also

Reference

Rebar Controls Messages
COLORREF
REBARBANDINFO