Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
I have a program that draws on my desktop...but I want it so after 10 seconds the line goes away. I thought ReleaseDC(hWnd, hDC) would do it but it didn't i have to put like a window ontop of it or something then it will go away. and My line drawing is on a loop and in a timer. I actually have the drawing on a hotkey...so when I press PrintScreen, it will draw, but I want it to after 10 seconds it will vanish...
Posted

You will need to save a copy of whatever is underneeth your drawing and flip them. For example, if you draw over the rectangle 0,0,200,200 you will need do something like

 

Get an image of the desktop into memory

draw your stuff

then to erase your stuff, redraw the covered section, and use the bitmap in memory as the source.

~Nate�

___________________________________________

Please use the [vb]/[cs] tags on posted code.

Please post solutions you find somewhere else.

Follow me on Twitter here.

Posted

thanks I think it was to much trouble so I scapped that part of my project but this is good info for ne1 else THANKS!

You will need to save a copy of whatever is underneeth your drawing and flip them. For example, if you draw over the rectangle 0,0,200,200 you will need do something like

 

Get an image of the desktop into memory

draw your stuff

then to erase your stuff, redraw the covered section, and use the bitmap in memory as the source.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...