when i draw text use DC, it always show an backgournd color which is diffrent from window's background.
views:
119answers:
1
Q:
in gdi, how to clear the background color of DC. so, the drawed text will show no background color.
+3
A:
SetBkMode(hdc, TRANSPARENT);
This will prevent the text-drawing functions (and some others) from drawing a background. SetBkMode(hdc, OPAQUE)
will switch back to opaque mode.
interjay
2010-04-07 16:28:34