DrawTextAPI

D

DanS

Hello all,

I'm now developing a Mappoint application and wish to draw a scale in the
bottom left corner of the map.

I've got everything worked out drawing via API calls, with the exception of
the DrawText call. When the text is drawn, how do I get it to be without
the background color. I want just the text to show, not with the block of
color behind it.

TIA,

DanS
 
T

Thorsten Albers

DanS said:
I'm now developing a Mappoint application and wish to draw a scale in the
bottom left corner of the map.
I've got everything worked out drawing via API calls, with the exception of
the DrawText call. When the text is drawn, how do I get it to be without
the background color. I want just the text to show, not with the block of
color behind it.

BkModePrev = SetBkMode(hDC, TRANSPARENT)
DrawText(...)
SetBkMode(hDC, BkModePrev)

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top