Share via


RB_SETTEXTCOLOR (Compact 2013)

3/28/2014

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

Syntax

RB_SETTEXTCOLOR wParam = 0; 
    lParam = (LPARAM)(COLORREF)clrText;

Parameters

  • wParam
    Not used.
  • clrText
    COLORREF value that represents the new default text color.

Return Value

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

Remarks

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

Requirements

Header

commctrl.h

See Also

Reference

Rebar Controls Messages
COLORREF
REBARBANDINFO