Draw.SetBkMode



SetBkMode(hdc As OLE_HANDLE,nBkMode As Long) As Long

Parameters

hdc As OLE_HANDLE
The hDC property is a handle (a number) that the Windows operating system uses for internal reference to an object. You can paint in theinternal area of any control that has an hDC property.
nBkMode As Long
Specifies the background mode. This parameter can be one of the following values.
Value
Name
Description
1
TRANSPARENT Background remains untouched.
2
OPAQUE Background is filled with the current background color before the text, hatched brush, or pen is drawn.
ED
not used
RT
avaliable

Remarks

The SetBkMode function sets the background mix mode of the specified device context. The background mix mode is used with text, hatched brushes, and pen styles that are not solid lines.

See Also

Draw