Really? I copied and pasted your code into a new file, and it still corrupts my desktop. I also tried the
api_InvalidateRect(QueryObject(Desktop(),1), 0, True)
but got the same result. I am on Windows 2000.
I compiled two .exes, one with that InvalidateRect line, and one without, and tried it on an XP laptop but the same behavior happens, the desktop gets corrupted any place the canvas had been over, left unrefreshed after exiting program and canvas is not transparent (window is transparent as desired, just not the canvas, same as before).
On my Win2k machine here, video settings are 24 bit depth (High Color) 1024x768, if that matters. Did you happen to try this only on Vista?
And thanks again for all your help with this, I really appreciate it.
api_InvalidateRect(QueryObject(Desktop(),1), 0, True)
but got the same result. I am on Windows 2000.
I compiled two .exes, one with that InvalidateRect line, and one without, and tried it on an XP laptop but the same behavior happens, the desktop gets corrupted any place the canvas had been over, left unrefreshed after exiting program and canvas is not transparent (window is transparent as desired, just not the canvas, same as before).
On my Win2k machine here, video settings are 24 bit depth (High Color) 1024x768, if that matters. Did you happen to try this only on Vista?
And thanks again for all your help with this, I really appreciate it.