I need to make my windows semi transparent.
If I register my own class and create window with WS_EX_LAYERED then
the window gets semi transparent (SetLayeredAttributes), but when I
use the windows predefined class i.e STATIC class then window tab is
taskbar but the window is hidden and never be shown.
Does the windows class dont support the WS_EX_LAYERED or what.
SetLayeredAttributes function is failing.
Kindly provide info.
Regards
Vinay
> If I register my own class and create window with WS_EX_LAYERED
> then the window gets semi transparent (SetLayeredAttributes), but when
> I use the windows predefined class i.e STATIC class then window tab
> is taskbar but the window is hidden and never be shown.
Are you trying to apply WS_EX_LAYERED to a child window? That will not
work. WS_EX_LAYERED can only be used on top-level windows.
--
Remy Lebeau (TeamB)
Dear,
I am not trying WS_EX_LAYERED on Child windows, but on those windows
which are created with Static class. If I use my own registered class
then WS_EX_LAYERED works but it is not working with STATIC class.
Is it a bug with Windows or what
Regards
Vinay
> I am not trying WS_EX_LAYERED on Child windows
Then please show your actual code that is failing.
--
Remy Lebeau (TeamB)
> I am not trying WS_EX_LAYERED on Child windows, but on
> those windows which are created with Static class. If I use my
> own registered class then WS_EX_LAYERED works but it is
> not working with STATIC class.
STATIC windows are not usually used as their own top-level floating windows.
They are usually used as child windows. I don't know if they can even be
used as non-child windows.
--
Remy Lebeau (TeamB)
> I am not trying WS_EX_LAYERED on Child windows, but on
> those windows which are created with Static class. If I use my
> own registered class then WS_EX_LAYERED works but it is
> not working with STATIC class.
STATIC windows are not usually used as their own top-level floating windows.
They are usually used as child windows. I don't know if they can even be
used as non-child windows.
Why are you trying to create a floating STATIC window to begin with? Since
you know that WS_EX_LAYERED works for custom window classes, why not just
create a custom class that has a STATIC child window on it?
--
Remy Lebeau (TeamB)