DrawTextAPI

  • Thread starter Thread starter DanS
  • Start date Start date
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
 
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)

--
 
Back
Top