RB_SETBKCOLOR

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

At a Glance

Header file: Commctrl.h
Windows CE versions: 2.0 and later

Syntax

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

Parameters

clrBk

COLORREF value that represents the new default background color.

Return Values

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.