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. Transparent Window

Transparent Window

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studiojsonhelp
4 Posts 4 Posters 0 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.
  • A Offline
    A Offline
    Aabid
    wrote on last edited by
    #1

    Hello All, i am working in VS 6 using VC++ Win32 :: I made a window using CreateWindowEx API and WNDCLASSEX Structure with Background Brush as (HOLLOW_BRUSH) and Style as WS_EX_TRANSPARENT... These 2 things made my window transparent....But the problem is when i maximize other window over my created window, its Background color changes to maximized window, that should not happen .......i always want my window background as desktop..... Any suggesstion is heartly appreciated

    A C M 3 Replies Last reply
    0
    • A Aabid

      Hello All, i am working in VS 6 using VC++ Win32 :: I made a window using CreateWindowEx API and WNDCLASSEX Structure with Background Brush as (HOLLOW_BRUSH) and Style as WS_EX_TRANSPARENT... These 2 things made my window transparent....But the problem is when i maximize other window over my created window, its Background color changes to maximized window, that should not happen .......i always want my window background as desktop..... Any suggesstion is heartly appreciated

      A Offline
      A Offline
      Ahmed Charfeddine
      wrote on last edited by
      #2

      This a "repainting" pbm : there is sort of an asynchrnous notification that needs be handled and but it is not. WM_ACTIVATE issue ? I do'nt have sufficient facts to reason and tell you. Good luck.

      1 Reply Last reply
      0
      • A Aabid

        Hello All, i am working in VS 6 using VC++ Win32 :: I made a window using CreateWindowEx API and WNDCLASSEX Structure with Background Brush as (HOLLOW_BRUSH) and Style as WS_EX_TRANSPARENT... These 2 things made my window transparent....But the problem is when i maximize other window over my created window, its Background color changes to maximized window, that should not happen .......i always want my window background as desktop..... Any suggesstion is heartly appreciated

        C Offline
        C Offline
        Code o mat
        wrote on last edited by
        #3

        You want to make your window a sort of "hole" on the screen that lets you see the desktop all the time? I doubt there's a sane way of doing that, you could try hooking into explorer's process and somehow make the desktop window's part that your window is over being drawn onto your window but i don't much recommend it.

        > The problem with computers is that they do what you tell them to do and not what you want them to do. <

        1 Reply Last reply
        0
        • A Aabid

          Hello All, i am working in VS 6 using VC++ Win32 :: I made a window using CreateWindowEx API and WNDCLASSEX Structure with Background Brush as (HOLLOW_BRUSH) and Style as WS_EX_TRANSPARENT... These 2 things made my window transparent....But the problem is when i maximize other window over my created window, its Background color changes to maximized window, that should not happen .......i always want my window background as desktop..... Any suggesstion is heartly appreciated

          M Offline
          M Offline
          My2Cents
          wrote on last edited by
          #4

          Try SetLayeredWindowAttributes

          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