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.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
public:
[DllImportAttribute(L"GDI32.dll", ExactSpelling = true, SetLastError = true)]
static BackgroundMode SetBkMode(
IntPtr hdc,
BackgroundMode mode
)
[<DllImportAttribute("GDI32.dll", ExactSpelling = true, SetLastError = true)>]
static member SetBkMode :
hdc : IntPtr *
mode : BackgroundMode -> BackgroundMode
No code example is currently available or this language may not be supported.
- hdc IntPtr
-
A handle to the device context.
- mode BackgroundMode
-
The background mode.
BackgroundMode
If the function succeeds, the return value specifies the previous background mode.
If the function fails, the return value is
ERROR.