From: Matt Houser on
I want to add a button (CButton) to a layered window. However, the button
does not appear (maybe not possible?) but I can get click events if I click
where the button should be.

Is there a workaround?

....Matt

--
Matt Houser
http://www.insidercoding.com

From: AliR on
The controls on a layered window will have the same alpha channel as the
window. So the more transparent the window then the more transparent are the
controls on it.

AliR.

"Matt Houser" <matt(a)houser.ca> wrote in message
news:DF70FC2D-93F4-4FF8-B0BB-FE4373327665(a)microsoft.com...
>I want to add a button (CButton) to a layered window. However, the button
>does not appear (maybe not possible?) but I can get click events if I click
>where the button should be.
>
> Is there a workaround?
>
> ...Matt
>
> --
> Matt Houser
> http://www.insidercoding.com


From: Matt Houser on
I am using UpdateLayeredWindow() for per-pixel alpha blending, not
SetLayeredWindowAttributes().

....Matt

--
Matt Houser
http://www.insidercoding.com

"AliR" <AliR(a)online.nospam> wrote in message
news:#13RiumqKHA.3848(a)TK2MSFTNGP06.phx.gbl...
> The controls on a layered window will have the same alpha channel as the
> window. So the more transparent the window then the more transparent are
> the controls on it.
>
> AliR.
>
> "Matt Houser" <matt(a)houser.ca> wrote in message
> news:DF70FC2D-93F4-4FF8-B0BB-FE4373327665(a)microsoft.com...
>>I want to add a button (CButton) to a layered window. However, the button
>>does not appear (maybe not possible?) but I can get click events if I
>>click where the button should be.
>>
>> Is there a workaround?
>>
>> ...Matt
>>
>> --
>> Matt Houser
>> http://www.insidercoding.com
>
>
From: David Ching on
"Matt Houser" <matt(a)houser.ca> wrote in message
news:0EAC7901-938D-4F79-9F21-B1732BAA2489(a)microsoft.com...
> I am using UpdateLayeredWindow() for per-pixel alpha blending, not
> SetLayeredWindowAttributes().
>

Unfortunately, child windows are not supported for these types of
translucent windows. I did have some success using just one HWND and
managing child "areas" myself, but I had to roll my own child window
manager.

For another project, we felt per pixel transparency was not worth giving up
child controls and just lived with 100% transparency defined for pixels of a
certain color. It depends on your usage, unfortunately you can't have both
per pixel transparency and child windows.

-- David


 | 
Pages: 1
Prev: Layered Modal Window
Next: wsprintf does not work