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.
Printable View
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.
"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.
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.
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.
Wouldnt it be easier to have a transparent maximized form and draw on it, instead of capturing the desktop and drawing on that image?