SetBackgroundColor


static Color SetBackgroundColor(Handle Device,
                                Color ColorSet)

This function sets the color of the background.

Parameters

Handle Device

The handle of the device context.

Color ColorSet

The color to which the background is set.

Return

Color

The previous background color.

Notes

If the device is unable to match the exact color, the nearest physical color is used instead.

The background color is used only when the background mix mode is set to Background::Opaque.

Gaps in lines drawn with a pen created via CreatePen are filled using the background color.

Pens created via CreatePen - Extended are unaffected by the background color.

The background of text drawn with functions

is filled using the current background color.

Details

Name Space IPlusPlus::Graphics
Class Gdi
Assembly IPlusPlus.WinPlus.dll