Layered child windows?
-
Does anyone know if it's possible to have layered child windows? I looked in documentation for WS_EX_LAYERED, it says only top-level windows can have that attribute. Anyone have any ideas? Thanks, Gene ---------------------------------------- ----I said my name wasn't important ---------------------------SlartiBartFast
-
Does anyone know if it's possible to have layered child windows? I looked in documentation for WS_EX_LAYERED, it says only top-level windows can have that attribute. Anyone have any ideas? Thanks, Gene ---------------------------------------- ----I said my name wasn't important ---------------------------SlartiBartFast
Why would you want to use WS_EX_LAYERED? It would exclude like 90% (or more) of the Win32 platforms. It might be cool, but it's unsupported on far more Win32 platforms (both in count of platforms and installations) than it's supported on.
-
Does anyone know if it's possible to have layered child windows? I looked in documentation for WS_EX_LAYERED, it says only top-level windows can have that attribute. Anyone have any ideas? Thanks, Gene ---------------------------------------- ----I said my name wasn't important ---------------------------SlartiBartFast
Eugene Polonsky wrote: I looked in documentation for WS_EX_LAYERED, it says only top-level windows can have that attribute. This is true. It is not really a problem however, since you generally have much more control over how child windows are drawn. GDI+ can help if you need routines for doing alpha blending. That said, one hack i have used in the past is to create a top-level window, but manually position and move it like a child window. Obviously this is generally useless, but in a few specific situations i could see it. --------_**
all the modern things have always existed they've just been waiting to come out and multiply and take over
**_
Björk, The Modern Things
-
Why would you want to use WS_EX_LAYERED? It would exclude like 90% (or more) of the Win32 platforms. It might be cool, but it's unsupported on far more Win32 platforms (both in count of platforms and installations) than it's supported on.
Mike Nordell wrote: Why would you want to use WS_EX_LAYERED? It would exclude like 90% (or more) of the Win32 platforms. Well, that depends. If you are talking about all machines world-wide where some version of Windows is installed, yeah, that's probably correct. However, that is not everyone's market. If you are targeting a specific group of users (such as a corporation where all software is standardized) then this decision is much more relevant. And although this is feature seems generally to be used for unnecessary gimicks, there are other uses for it; i recall one person posting here a while back who was designing a HUD that needed to be displayed over another piece of software. --------_**
all the modern things have always existed they've just been waiting to come out and multiply and take over
**_
Björk, The Modern Things