共用方式為


RB_SETTEXTCOLOR (Windows CE 5.0)

Send Feedback

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

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

Parameters

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

Return Values

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

OS Versions: Windows CE 2.0 and later.
Header: Commctrl.h.

See Also

COLORREF | REBARBANDINFO

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.