tags:

views:

119

answers:

1

when i draw text use DC, it always show an backgournd color which is diffrent from window's background.

+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