Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.drawing
Re: GDI+ drawing in the top layer
Justin Rogers
9/22/2004 2:27:00 AM
Using an over the top form isn't really a hack. It is an elegant solution that
allows you to quickly
and easily create overlays. If you want a more direct solution you can draw to
the desktop DC.
This will effectively overwrite anything, inside or outside of your form. You'll
have to manage
paint messages with a pre-process filter so that you can re-draw over the top of
any controls
that repaint themselves. If you have scrolling controls, drawing over the top
can cause issues
with ScrollDC.
Advice? Stick with the form overlay.
--
Justin Rogers
DigiTec Web Consultants, LLC.
Blog:
http://weblogs.asp.net/jus...
"Jason" <jason@mailinator.com> wrote in message
news:4a8d7ea.0409210549.f8f2341@posting.google.com...
> Quick question (I searched but couldn't find the answer, although I'm
> sure this has been asked before): Is it possible to simply draw to the
> very foremost layer using GDI+? As in, let's say I want to implement
> some nice, transparent rubberband selection of controls within a Form.
> Now, I can only get the form to draw GDI+ underneath its contained
> Controls.
>
> I've figured out some hacks, like creating a special form above the
> existing one and things like that, but is there a way to do it using
> GDI+ directly??
>
> Any other solutions people have had luck with?
>
> Thanks!
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: GDI+ drawing in the top layer
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password