Delete Draw...

Biodegradable

Member
Joined
Nov 20, 2005
Messages
9
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 didnt 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...
 
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.
 
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!
Nate Bross said:
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.
 
Back
Top