Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Layered child windows?

Layered child windows?

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 3 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Eugene Polonsky
    wrote on last edited by
    #1

    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

    M S 2 Replies Last reply
    0
    • E Eugene Polonsky

      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

      M Offline
      M Offline
      Mike Nordell
      wrote on last edited by
      #2

      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.

      S 1 Reply Last reply
      0
      • E Eugene Polonsky

        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

        S Offline
        S Offline
        Shog9 0
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • M Mike Nordell

          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.

          S Offline
          S Offline
          Shog9 0
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups