Transparent Form

Vtecmyvrtc
10-01-2001, 01:54 AM
Is there any way that I can make part of a form transparent so that the desktop or other program can be seen from inside of my program?

BillSoo
10-01-2001, 02:09 AM
There are 2 basic ways:

1) simply copy the desktop image from behind your form and paste it on top of your form, making it look transparent. This requires API calls like BitBlt, GetDesktopWindow and GetDC.

2) Create a region the same size as your form, then exclude part of it. Then set your form to use that region for painting. This requires API calls like CreateRectRgn, CombineRgn and SetWindowRgn. There is an example of this method <a href="http://www.visualbasicforum.com/bbs/showflat.php?Cat=&Board=CodeLib&Number=45565&page=0&view=collapsed&sb=5&o=all&part="> HERE</a>


"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder

usetheforce2
10-01-2001, 06:51 AM
here's another example you could look at.
CLICK HERE (http://www.visualbasicforum.com/bbs/showflat.php?Cat=&Board=CodeLib&Number=52638&page=0&view=collapsed&sb=5&o=7&part=)

"The crows seem to be calling his name, thought Caw." - Jack Handy

Garrett Sever
10-01-2001, 07:02 AM
Or you could look at this (http://www.visualbasicforum.com/bbs/showflat.php?Cat=&Board=CodeLib&Number=45565&page=0&view=collapsed&sb=5&o=31&part=) example for ideas.

DO'H!

<font color=green>All your code are belong to us...</font color=green> images/icons/tongue.gif<P ID="edit"><FONT class="small"><EM>Edited by The Hand on 10/01/01 08:42 AM.</EM></FONT></P>

Mill
10-01-2001, 07:35 AM
BillSoo already had a link to that post in his reply. images/icons/smile.gif


"The LORD is my strength and my shield" - Psalms 28:7

KesleyK
10-01-2001, 09:02 PM
lol

__________
HOOOaaaaa! Semper Fi!

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum