Re: seethru client area

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Mar 30, 8:40 pm, Chimanrao <chiman...@xxxxxxxxx> wrote:
hi,

I want to create a window where you can "see-thru" it,i.e the contents
of the window below it should be visible.
How can I do this?

Regards
Chimanrao


Hi,

Well... you can achieve certain kinds of transparency by using
alpha blending, which is part of GDI and GDI+. So, you can use
the following APIs to accomplish that:

CreateWindowEx() WS_EX_TRANSPARENT

UpdateLayeredWindow()

SetLayeredWindowAttributes()

SetWindowRgn()

SetBkMode() TRANSPARENT

AlphaBlend()

TransparentBlt()

http://msdn2.microsoft.com/en-us/library/ms632680.aspx

http://msdn2.microsoft.com/en-us/library/ms633556.aspx

http://msdn2.microsoft.com/en-us/library/ms633540.aspx

http://msdn2.microsoft.com/en-us/library/ms534845.aspx

http://msdn2.microsoft.com/en-us/library/ms534862.aspx

http://msdn2.microsoft.com/en-us/library/ms532324.aspx

http://msdn2.microsoft.com/en-us/library/ms532303.aspx

Kellie.

.



Relevant Pages

  • Re: seethru client area
    ... you can achieve certain kinds of transparency by using ... alpha blending, which is part of GDI and GDI+. ... I did use WS_EX_TRANSPARENT style, with this the window see-thru, i.e ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Difference between this.CreateGraphics() and Graphics.FromHdc(hDC);
    ... I've had a read through the GDI+ FAQ. ... FromHdc using the handle from GetWindowDC will return a graphics object ... based on the whole window including the non-client area. ... Find great Windows Forms articles in Windows Forms Tips and Tricks ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Difference between this.CreateGraphics() and Graphics.FromHdc(hDC);
    ... missing paint event, and the draw flat button code can be called from ... I've had a read through the GDI+ FAQ. ... FromHdc using the handle from GetWindowDC will return a graphics object ... based on the whole window including the non-client area. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: MDI child not working VISTA
    ... To rule-out the desktop composition and GDI redirection, ... Any drawing commands targeting the window device context will go there ... Now the problem is that in the "unit test" after opening just few ... that a new window is created and distroyed without compositing on screeen ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Data Abort: Thread=8f992000 Proc=88db9ed0 gwes.exe
    ... Grow Gdi handle table from 192 to 256 ... 0x8fbfd400: SWP:FrameChanged sent to window 0x7C0145A0 which is not visible ... Secondary thread in proc efd8594e faulted! ...
    (microsoft.public.windowsce.platbuilder)