Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Mon, 21 Jul 2008 15:37:06 -0400,    group: microsoft.public.win32.programmer.gdi        back       


Transparent child window   
I have a child window with a light-colored background color brush, which 
I want to be transparent so that the underlying parent window shows 
through the background. A layered window does not work with a child 
window. Is there any way I can do this with a child window ?
date: Mon, 21 Jul 2008 15:37:06 -0400   author:   Edward Diener

Re: Transparent child window   
On Jul 21, 12:37 pm, Edward Diener
 wrote:
> I have a child window with a light-colored background color brush, which
> I want to be transparent so that the underlying parent window shows
> through the background. A layered window does not work with a child
> window. Is there any way I can do this with a child window ?



Hi,

Have you tried the following Windows style to create
a transparent window:

	CreateWindowEx()		WS_EX_TRANSPARENT

Or,

	SetWindowRgn()

http://msdn.microsoft.com/en-us/library/ms632680(VS.85).aspx

http://msdn.microsoft.com/en-us/library/ms534845(VS.85).aspx

Kellie.
date: Mon, 21 Jul 2008 13:04:13 -0700 (PDT)   author:   Kellie Fitton

Re: Transparent child window   
Kellie Fitton wrote:
> On Jul 21, 12:37 pm, Edward Diener
>  wrote:
>> I have a child window with a light-colored background color brush, which
>> I want to be transparent so that the underlying parent window shows
>> through the background. A layered window does not work with a child
>> window. Is there any way I can do this with a child window ?
> 
> 
> 
> Hi,
> 
> Have you tried the following Windows style to create
> a transparent window:
> 
> 	CreateWindowEx()		WS_EX_TRANSPARENT

This does not work at all. I am not painting the window but just 
creating it with a brush of a certain color. When I show the window, 
even with the WS_EX_TRANSPARENT style specified as the extended style 
when the window is created, the window completely obscures its parent 
window.

> 
> Or,
> 
> 	SetWindowRgn()

I do not understand how transparency is to be achieved using SetWindowRgn().
date: Tue, 22 Jul 2008 08:36:47 -0400   author:   Edward Diener

Re: Transparent child window   
Kellie Fitton wrote:
> On Jul 21, 12:37 pm, Edward Diener
>  wrote:
>> I have a child window with a light-colored background color brush, which
>> I want to be transparent so that the underlying parent window shows
>> through the background. A layered window does not work with a child
>> window. Is there any way I can do this with a child window ?
> 
> 
> 
> Hi,
> 
> Have you tried the following Windows style to create
> a transparent window:
> 
> 	CreateWindowEx()		WS_EX_TRANSPARENT
> 
> Or,
> 
> 	SetWindowRgn()
> 

I was able to switch my window type from WS_CHILD to WS_POPUP and use 
the WS_EX_LAYERED extended style as well as the 
SetLayeredWindowAttributes to achieve my goals. Thanks for your help !
date: Tue, 22 Jul 2008 09:48:45 -0400   author:   Edward Diener

Re: Transparent child window   
Have you tried to drag the parent window around?  What happes to the child window if you
drag the parent window?  My expectation is that the popup window will not move with the
parent, but I haven't tried this.
					joe

On Tue, 22 Jul 2008 09:48:45 -0400, Edward Diener 
wrote:

>Kellie Fitton wrote:
>> On Jul 21, 12:37 pm, Edward Diener
>>  wrote:
>>> I have a child window with a light-colored background color brush, which
>>> I want to be transparent so that the underlying parent window shows
>>> through the background. A layered window does not work with a child
>>> window. Is there any way I can do this with a child window ?
>> 
>> 
>> 
>> Hi,
>> 
>> Have you tried the following Windows style to create
>> a transparent window:
>> 
>> 	CreateWindowEx()		WS_EX_TRANSPARENT
>> 
>> Or,
>> 
>> 	SetWindowRgn()
>> 
>
>I was able to switch my window type from WS_CHILD to WS_POPUP and use 
>the WS_EX_LAYERED extended style as well as the 
>SetLayeredWindowAttributes to achieve my goals. Thanks for your help !
date: Thu, 31 Jul 2008 13:05:42 -0400   author:   Joseph M. Newcomer

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us