What IS your problem ? You give me that [censored] "setlayer" thing again... Don't YOU GUYS READ ? I said "TRANSPARENT WINDOW"... NOT ALPHA [censored] BLENDED!

First off what your talking about isnt transparency at all. you want regioning. Starting with win2k and up alpha blended windows simply use a method of several copies of the window each with different pixels regioned out. The "layers" you see is a combination of these.

As for your suggestion in short this is impossible and heres why.

The text is "Drawn" onto the window (moreover its dc). If the window were made "transparent" as you call it then the text would also go. The best alternative you have is to scan the bitmap loaded into the windows dc (device context) pixel by pixel and if it matches a particular color exclude it from the windows visible region.

If the text (or absolutely anything else on that window including other windows) is of that color even just for a few pixels it too will be removed. This is extremly slow and very very ineficient.

For a dll to do this is no problem at all a few Win32 calls (sclass and trap WM_PAINT) and you could do this with ease. You will notice the drawbacks immediately.


Have Fun smile