|
| Drawtextapi |
| Newsgroup ::: microsoft.public.vb.winapi,microsoft.public.vb.winapi.graphics,microsoft.public.windowsxp.general |
| DrawTextAPI | Options | Advertisers | ||||||||||||||||||||||||||||
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 |
|
|||||||||||||||||||||||||||||
| Re: DrawTextAPI | Options | Advertisers | ||||||||||||||||||||||||||||
DanS <t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a..n.e.t> schrieb im Beitrag <Xns9831B91B03F82idispcom@216.196.97.142>... > 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) -- ---------------------------------------------------------------------- THORSTEN ALBERS Universität Freiburg albers@ uni-freiburg.de ---------------------------------------------------------------------- |
|
|||||||||||||||||||||||||||||
| Re: DrawTextAPI | Options | Advertisers | ||||||||||||||||||||||||||||
"Thorsten Albers" <albersRE@MOVEuni-freiburg.de> wrote in news:01c6ce16$da8094e0$c34ff8d9@thaldesk: > DanS <t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a..n.e.t> schrieb im Beitrag ><Xns9831B91B03F82idispcom@216.196.97.142>... >> 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) > Awesome Thorsten.....Thank you very much. DanS |
|
|||||||||||||||||||||||||||||
| Comments | |||
|
|||
| Add Comments | |||
|
|||