Biodegradable Posted November 29, 2005 Posted November 29, 2005 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... Quote
Nate Bross Posted November 30, 2005 Posted November 30, 2005 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. Quote ~Nate� ___________________________________________ Please use the [vb]/[cs] tags on posted code. Please post solutions you find somewhere else. Follow me on Twitter here.
Biodegradable Posted December 2, 2005 Author Posted December 2, 2005 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.