BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Drawing on the desktop

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
-lp-d31m05
Guest





PostPosted: Sat Dec 27, 2003 7:17 pm    Post subject: Drawing on the desktop Reply with 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





PostPosted: Sun Dec 28, 2003 2:00 am    Post subject: Re: Drawing on the desktop Reply with quote



-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





PostPosted: Sun Dec 28, 2003 6:40 am    Post subject: Re: Drawing on the desktop Reply with quote



-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





PostPosted: Mon Dec 29, 2003 10:56 am    Post subject: Re: Drawing on the desktop Reply with quote

-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 Smile
Add michael@ to emboss.co.nz - My inbox is always open



Back to top
-lp-d31m05
Guest





PostPosted: Tue Dec 30, 2003 6:48 pm    Post subject: Re: Drawing on the desktop Reply with quote

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





PostPosted: Tue Dec 30, 2003 11:02 pm    Post subject: Re: Drawing on the desktop Reply with quote

-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





PostPosted: Wed Dec 31, 2003 9:51 am    Post subject: Re: Drawing on the desktop Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.