PyCDC.SetTextColor

int = SetTextColor(color)

Sets the text color to the specified color.

Parameters

color : int

A windows color specification. See the win32api documentation for details.

Comments

This text color is used when writing text to this device context and also when converting bitmaps between color and monochrome device contexts. If the device cannot represent the specified color, the system sets the text color to the nearest physical color. The background color for a character is specified by the SetBkColor and SetBkMode member functions.

MFC References

CDC::SetTextColor

Return Value

The return value is the previous text color.