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#
  4. Ghost windows

Ghost windows

Scheduled Pinned Locked Moved C#
htmlcomtutorialquestion
4 Posts 2 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.
  • I Offline
    I Offline
    Itay Sagui
    wrote on last edited by
    #1

    Does anyone know how to do the Ghost window feature, that can be seen at: http://www.absoluteway.com/tweakwindow/window_make_it_ghost.htm[^] ?? This feature allows you to have a truely transparent window, that clicking on it behaves as though it wasn't there and transfer the click to the window bellow it... I've found this reference: "If the layered window has the WS_EX_TRANSPARENT extended window style, the shape of the layered window will be ignored and the mouse events will be passed to the other windows underneath the layered window." from MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwui/html/msdn_classy32.asp[^]) But it does not seem to work.... Any suggestion?

    N 1 Reply Last reply
    0
    • I Itay Sagui

      Does anyone know how to do the Ghost window feature, that can be seen at: http://www.absoluteway.com/tweakwindow/window_make_it_ghost.htm[^] ?? This feature allows you to have a truely transparent window, that clicking on it behaves as though it wasn't there and transfer the click to the window bellow it... I've found this reference: "If the layered window has the WS_EX_TRANSPARENT extended window style, the shape of the layered window will be ignored and the mouse events will be passed to the other windows underneath the layered window." from MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwui/html/msdn_classy32.asp[^]) But it does not seem to work.... Any suggestion?

      N Offline
      N Offline
      Nick Parker
      wrote on last edited by
      #2

      Itay Sagui wrote: Does anyone know how to do the Ghost window feature, that can be seen at: The look can be accomplished simply by setting the Opacity property of your form to the desired amount. Itay Sagui wrote: "If the layered window has the WS_EX_TRANSPARENT extended window style, the shape of the layered window will be ignored and the mouse events will be passed to the other windows underneath the layered window." But it does not seem to work.... What are you doing? Have you tried to override the CreateParams and or'ing the WS_EX_TRANSPARENT (0x00000020L) window style? - Nick Parker
      My Blog | My Articles

      I 1 Reply Last reply
      0
      • N Nick Parker

        Itay Sagui wrote: Does anyone know how to do the Ghost window feature, that can be seen at: The look can be accomplished simply by setting the Opacity property of your form to the desired amount. Itay Sagui wrote: "If the layered window has the WS_EX_TRANSPARENT extended window style, the shape of the layered window will be ignored and the mouse events will be passed to the other windows underneath the layered window." But it does not seem to work.... What are you doing? Have you tried to override the CreateParams and or'ing the WS_EX_TRANSPARENT (0x00000020L) window style? - Nick Parker
        My Blog | My Articles

        I Offline
        I Offline
        Itay Sagui
        wrote on last edited by
        #3

        I don't care much about the look. I have no problem with the opacity of the window. I've over-ridden the CreateParams, and ORed the WS_EX_TRANSPARENT but this does not give the desired (specified?) results. What I'm trying to do is to have a window passing the mouse clicks to the window beneath it... I also forgot that this works fine, on windows from the same application, if I return HTTRANSPARENT in the WM_NCHITTEST message, but have absolutely no effect on external (other applications) windows... :(

        N 1 Reply Last reply
        0
        • I Itay Sagui

          I don't care much about the look. I have no problem with the opacity of the window. I've over-ridden the CreateParams, and ORed the WS_EX_TRANSPARENT but this does not give the desired (specified?) results. What I'm trying to do is to have a window passing the mouse clicks to the window beneath it... I also forgot that this works fine, on windows from the same application, if I return HTTRANSPARENT in the WM_NCHITTEST message, but have absolutely no effect on external (other applications) windows... :(

          N Offline
          N Offline
          Nick Parker
          wrote on last edited by
          #4

          Itay Sagui wrote: What I'm trying to do is to have a window passing the mouse clicks to the window beneath it... Without looking around too much you could call GetNextWindow passing GW_HWNDNEXT (2) as the second parameter to get the handle to the window below your window, thus calling ShowWindow with your corresponding hWnd to display the lower window as you would want it to have focus. - Nick Parker
          My Blog | My Articles

          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