|
-
Dec 25th, 2004, 10:22 PM
#1
Thread Starter
Fanatic Member
Desktop.Cls
What's the equivalent of a .cls on the desktop? I want to be able to blt to desktop and then be able to erase what I've done. Thanks.
-
Dec 25th, 2004, 10:33 PM
#2
Re: Desktop.Cls
"Desktop" is just another Windows application so you can't really draw on it directly. What you may do is to capture it and save that as some image (bmp type is what's available in VB). Then modify new image (you can do this in VB) and set new desktop image but you'd have to "remember" the old one. All of the above cannot be done without api.
For some sample code just search forum for "how to capture desktop" and/or "how to change walpaer" and you should get number of hits.
Good luck.
-
Dec 25th, 2004, 10:42 PM
#3
Thread Starter
Fanatic Member
Re: Desktop.Cls
erm, yeah, considering I said I was blting to it I know im using API's. I'm not talking about changing the wallpaper, I'm talking about erasing what I just did. I used getwindowhdc(0) and blted to that, now I need to erase it.
-
Dec 25th, 2004, 10:53 PM
#4
Re: Desktop.Cls
as he said, you have to remember what it was, before you draw over it, as you cannot un-do what you have drawn, you just draw what was there before to put it back.
-
Dec 26th, 2004, 03:11 AM
#5
Re: Desktop.Cls
Wouldnt it be easier to have a transparent maximized form and draw on it, instead of capturing the desktop and drawing on that image?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|