Home Page 
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
Go to top
 Top
See comments
 See comments
Add comments
 Add comments
Rate this news
  Useful news Don't help me
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
----------------------------------------------------------------------

Go to top
 Top
See comments
 See comments
Add comments
 Add comments
Rate this news
  Useful news Don't help me
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
Go to top
 Top
See comments
 See comments
Add comments
 Add comments
Rate this news
  Useful news Don't help me
Documento sin título
 Comments
 
No comments found
 
Add Comments

   
 
See Also :::
| Error | Font fuzzy | Forcing ctrl alt del in registry disablecad |
| Forgot to try another mouse (touchpad in my case) | Frank saunders too stop polluting please | Group messages by conversation (which uses indexes not subjects or titles) |
| Carpeta repair para que sirve | Chkdsk de nuevo | Chkdsk |
| Clonar ide a ata | Como abrir archivos indexados | Como optimizar el arranque de ubuntu dapper |
| Error al inciar windows xp ayuda por favor | Error en el mapa de bits | Es posible crear un servidor ftp con windows windows xp |
| Fallo inesperado con los links y descargas | Grabar en mini cds | He perdido un icono |
| Dont have a windows windows xp disk | Drag and drop | Driver problem |
| External usb hard disk kit shows wrong disk size | Folder sharing | Help jpgs unreadable after copying to hard drive |