다음을 통해 공유


SetTextColor (Windows CE 5.0)

Send Feedback

This function sets the text color of the specified device context to the specified color.

COLORREFSetTextColor(HDChdc, COLORREFcrColor);

Parameters

  • hdc
    [in] Handle to the device context.
  • crColor
    [in] Value of type COLORREF that specifies the color of the text.

Return Values

A color reference for the previous text color indicates success. CLR_INVALID indicates failure. To get extended error information, call GetLastError.

Remarks

The ExtTextOut function uses the text color to draw the face of each character that ExtTextOut writes. The text color is also used when converting bitmaps from color to monochrome and vice versa.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Windows.h.
Link Library: Coredll.lib.

See Also

BitBlt | ExtTextOut | SetBkColor | StretchBlt | RGB

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.