| View previous topic :: View next topic |
| Author |
Message |
-lp-d31m05 Guest
|
Posted: Sat Dec 27, 2003 7:17 pm Post subject: Drawing on the desktop |
|
|
Hi there,
I'd really like to know how you can draw on the desktop - I've seen that on
WinAmp visualisations. They call that overlay. How do they do that?
Rowan
|
|
| Back to top |
|
 |
KLinZ Guest
|
Posted: Sun Dec 28, 2003 2:00 am Post subject: Re: Drawing on the desktop |
|
|
-lp-d31m05 wrote:
| Quote: | I'd really like to know how you can draw on the desktop - I've seen
that on WinAmp visualisations. They call that overlay. How do they do
that?
|
You can obtain the DC for the desktop with:
DC := GetWindowDC (GetDesktopWindow);
Use this DC to draw on the desktop, or even attach a canvas to it:
DC := GetWindowDC(GetDesktopWindow);
c := TCanvas.Create;
c.Handle := DC;
--
www.zenobits.com
|
|
| Back to top |
|
 |
Nicholas Sherlock Guest
|
Posted: Sun Dec 28, 2003 6:40 am Post subject: Re: Drawing on the desktop |
|
|
-lp-d31m05 wrote:
| Quote: | Hi there,
I'd really like to know how you can draw on the desktop - I've seen
that on WinAmp visualisations. They call that overlay. How do they do
that?
Rowan
|
Further to KLinZ's advice, Winamp figures out what part of the screen is the
"Desktop" by removing the desktop background and setting the desktop
background colour to a specific colour. Then when it goes to draw on the
screen, it only draws on top of that specific colour (Which Winamp hopes is
not used anywhere else on your programs).
Cheers,
Nicholas Sherlock
|
|
| Back to top |
|
 |
Michael Brown Guest
|
Posted: Mon Dec 29, 2003 10:56 am Post subject: Re: Drawing on the desktop |
|
|
-lp-d31m05 wrote:
| Quote: | I'd really like to know how you can draw on the desktop - I've seen
that on WinAmp visualisations. They call that overlay. How do they do
that?
|
It's a DirectX feature. Look it up in the DX helpfiles.
--
Michael Brown
www.emboss.co.nz : OOS/RSI software and more
Add michael@ to emboss.co.nz - My inbox is always open
|
|
| Back to top |
|
 |
-lp-d31m05 Guest
|
Posted: Tue Dec 30, 2003 6:48 pm Post subject: Re: Drawing on the desktop |
|
|
Guys, really... thanks a lot for the tips - they worked fine. I managed to
draw stuff on the screen - not actually the desktop - but that's still okay.
But I was thinking about something - do you think windows stores the
background image somewhere in memory? If it does, what would happen if I
modified it, if it can be modified? That could sound insane, but if the
background image were really stored somewhere in memory and if it could be
modified, then I think we're off for great animation onto the desktop. Could
use that to put up movies onto the desktop and stuff, you know.
Anywayz, I really appreciated your help. Thanks a lot.
Rowan
"-lp-d31m05" <rowan (AT) intnet (DOT) mu> wrote
| Quote: | Hi there,
I'd really like to know how you can draw on the desktop - I've seen that
on
WinAmp visualisations. They call that overlay. How do they do that?
Rowan
|
|
|
| Back to top |
|
 |
KLinZ Guest
|
Posted: Tue Dec 30, 2003 11:02 pm Post subject: Re: Drawing on the desktop |
|
|
-lp-d31m05 wrote:
| Quote: | Could use that to put up movies onto the desktop and
stuff, you know.
|
BS Player can do that.
--
www.zenobits.com
|
|
| Back to top |
|
 |
Nicholas Sherlock Guest
|
Posted: Wed Dec 31, 2003 9:51 am Post subject: Re: Drawing on the desktop |
|
|
KLinZ wrote:
| Quote: | -lp-d31m05 wrote:
Could use that to put up movies onto the desktop and
stuff, you know.
BS Player can do that.
|
So can Windows. It's called Active Desktop.
Cheers,
Nicholas Sherlock
|
|
| Back to top |
|
 |
|