From: Vikky on
Hi,
Any idea on how to create a transparent window? I am kind of stuck with
this for a while now...
From: Vikky on

I have been able to display a transparent window using HOLLOW_BRUSH. But,
now the problem is that I am drawing into a region of the window when there
is input from the user. I am not able to erase the background for drawing the
new text. I have tried copying the DC before drawing, keeping it in memory
and then when I have to redraw bitblting into this region. But, this doesn't
work. Any idea on how to go about it?

"Vikky" wrote:

> Hi,
> Any idea on how to create a transparent window? I am kind of stuck with
> this for a while now...
From: Fabien on
Hi,

Check out this to use transparency color :
http://fabdecret.blogspot.com/2007/11/transparent-background.html

BR

Fabien Decret (Device Application Development MVP)
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/ | http://fabdecret.blogspot.com/


On 30 mar, 03:22, Vikky <Vi...(a)discussions.microsoft.com> wrote:
> I have been able to display a transparent window using HOLLOW_BRUSH. But,
> now the problem is that I am drawing into a region of the window when there
> is input from the user. I am not able to erase the background for drawing the
> new text. I have tried copying the DC before drawing, keeping it in memory
> and then when I have to redraw bitblting into this region. But, this doesn't
> work. Any idea on how to go about it?
>
>
>
> "Vikky" wrote:
> > Hi,
> >    Any idea on how to create a transparent window? I am kind of stuck with
> > this for a while now...- Masquer le texte des messages précédents -
>
> - Afficher le texte des messages précédents -

From: Vikky on
Thanks! But I am not using .Net

"Fabien" wrote:

> Hi,
>
> Check out this to use transparency color :
> http://fabdecret.blogspot.com/2007/11/transparent-background.html
>
> BR
>
> Fabien Decret (Device Application Development MVP)
> Windows Embedded Consultant
>
> ADENEO (ADESET)
> http://www.adeneo.adetelgroup.com/ | http://fabdecret.blogspot.com/
>
>
> On 30 mar, 03:22, Vikky <Vi...(a)discussions.microsoft.com> wrote:
> > I have been able to display a transparent window using HOLLOW_BRUSH. But,
> > now the problem is that I am drawing into a region of the window when there
> > is input from the user. I am not able to erase the background for drawing the
> > new text. I have tried copying the DC before drawing, keeping it in memory
> > and then when I have to redraw bitblting into this region. But, this doesn't
> > work. Any idea on how to go about it?
> >
> >
> >
> > "Vikky" wrote:
> > > Hi,
> > > Any idea on how to create a transparent window? I am kind of stuck with
> > > this for a while now...- Masquer le texte des messages précédents -
> >
> > - Afficher le texte des messages précédents -
>
>
From: Scott Seligman on
=?Utf-8?B?Vmlra3k=?= <Vikky(a)discussions.microsoft.com> wrote:
>
>I have been able to display a transparent window using HOLLOW_BRUSH.

Sorry, but no you haven't. You've created a broken window
that doesn't properly repaint itself.

>But, now the problem is that I am drawing into a region of the
>window when there is input from the user. I am not able to erase the
>background for drawing the new text. I have tried copying the DC before
>drawing, keeping it in memory and then when I have to redraw bitblting
>into this region. But, this doesn't work. Any idea on how to go about
>it?

About the only thing you can do is use GetDC(0)/BitBlt() to copy the
desktop to a private buffer before your window is drawn. Then draw this
private buffer onto your window during WM_PAINT.

--
--------- Scott Seligman <scott at <firstname> and michelle dot net> ---------
He had to get up to run some more. He told his muscles to do so. They
told him they had the night off.
-- Deadly Relations: Bester Ascendant by J. Gregory Keyes