Gdi32SetBkMode Method

Sts the background mix mode of the specified device context (DC).

The background mix mode is used with text, hatched brushes, and pen styles that are not solid lines.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("GDI32.dll", ExactSpelling = true, SetLastError = true)]
public static BackgroundMode SetBkMode(
	IntPtr hdc,
	BackgroundMode mode
)

Parameters

hdc  IntPtr
A handle to the device context.
mode  BackgroundMode
The background mode.

Return Value

BackgroundMode
If the function succeeds, the return value specifies the previous background mode.

If the function fails, the return value is ERROR.

Remarks

See Also