setcolor

This function is used to set current foreground color.

void setcolor(COLORREF color);

Parameters

color

Foreground color.

Return Value

None

Remarks

The function is declared in graphics.h and is used to be compatible with function of the same name in Turbo C, equivalent to executing the setlinecolor and settextcolor functions in turn in easyx.h.

It is recommended to use setlinecolor or settextcolor instead of the function as required.

Examples

None

(贡献者:Krissi  编辑