Results 1 to 5 of 5

Thread: Desktop.Cls

  1. #1

    Thread Starter
    Fanatic Member Nove's Avatar
    Join Date
    Jul 2004
    Posts
    736

    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.

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    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.

  3. #3

    Thread Starter
    Fanatic Member Nove's Avatar
    Join Date
    Jul 2004
    Posts
    736

    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.

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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.

  5. #5
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    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
  •  



Click Here to Expand Forum to Full Width