static Color SetBackgroundColor(Handle Device,
                                Color ColorSet)

This function sets the color of the background.


Handle Device

The handle of the device context.

Color ColorSet

The color to which the background is set.



The previous background color.


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.


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