Teen Programmers Unite  
 

 

Return to forum top

Window Surgery under XP

Posted by Brok3n_Link [send private reply] at December 28, 2002, 08:53:26 PM

hi all
just a quick question for vb.
ages ago i wrote a routine to cut a chunk out of a window (form) using SetWindowRegion and GetBitmapRegion. It would scan the windows backround pic and make all say, white, pixels dissappear, then it would set the window so that the white was not longer part of it. I now use windows xp and it goes wacko ballistica - it cuts it out but whenever the form is re-painted by windows, it sets the remaining portion of the windows' ackround pic to whatevers beneath it. a cool effect, but it's not what i want.
Does anybody have any ideas or another way to do this?
thanks.

Posted by CodeRed [send private reply] at December 29, 2002, 03:49:56 PM

Here's an idea: go back to the insane assylum you escaped from...

Posted by Brok3n_Link [send private reply] at December 29, 2002, 08:56:13 PM

LOL
nevermind, i don't need to to do it now anyway.

Posted by Mike_L [send private reply] at January 08, 2003, 04:19:04 PM

Probably what's happening is that Windows Explorer has changed the way it repaints itself. Perhaps your program is screwing with the wrong window?

Does your program work on Windows Notepad?

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.