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. Is this possible?

Is this possible?

Scheduled Pinned Locked Moved C / C++ / MFC
csssalesquestion
5 Posts 3 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.
  • M Offline
    M Offline
    moliate
    wrote on last edited by
    #1

    The customer requests an application that draws a grid and some data over the entire screen, including all other applications and the task bar. This grid is supposed to be fully transparant, meaning that you can both see and manipulate windows under it. I have never seen anything like it before, and wonder if this can be done at all... Does anyone have a suggestion? :confused: Thanks /moliate

    M S 2 Replies Last reply
    0
    • M moliate

      The customer requests an application that draws a grid and some data over the entire screen, including all other applications and the task bar. This grid is supposed to be fully transparant, meaning that you can both see and manipulate windows under it. I have never seen anything like it before, and wonder if this can be done at all... Does anyone have a suggestion? :confused: Thanks /moliate

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      If you use to implement ActiveX control with ATL,if you uncheck Opaque in "Miscellaneous" tab,then it will be transparat,for MFC I'm not sure but in your ONDraw function you do it and does not draw some part. Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
      Wish You Were Here-Pink Floyd-1975

      M 1 Reply Last reply
      0
      • M Mazdak

        If you use to implement ActiveX control with ATL,if you uncheck Opaque in "Miscellaneous" tab,then it will be transparat,for MFC I'm not sure but in your ONDraw function you do it and does not draw some part. Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
        Wish You Were Here-Pink Floyd-1975

        M Offline
        M Offline
        moliate
        wrote on last edited by
        #3

        Thanks, but the problem is mainly how to forward messages to the underlaying windows. Can I detach my windows input queue from the raw input thread? Also, simply setting a dialog as transparant, does not seem to work the way I want it to, as it is a child of the desktop and does not update other windows underneath. /moliate

        1 Reply Last reply
        0
        • M moliate

          The customer requests an application that draws a grid and some data over the entire screen, including all other applications and the task bar. This grid is supposed to be fully transparant, meaning that you can both see and manipulate windows under it. I have never seen anything like it before, and wonder if this can be done at all... Does anyone have a suggestion? :confused: Thanks /moliate

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

          If you are using Win2k or above, you can create a window with the style WS_EX_TOPMOST (keep above all other windows), WS_EX_LAYERED (for transparency/translucency) and WS_TRANSPARENT (causes input to be passed through). Check out the layered window API to learn how to draw and update such a window. If you are using Win9x, you will have to do much more work. Using window regions is one possibility... IMHO, this seems a strange way of presenting information... may i ask what this is for? farewell goodnight last one out turn out the lights

          Smashing Pumpkins, Tales of a Scorched Earth

          M 1 Reply Last reply
          0
          • S Shog9 0

            If you are using Win2k or above, you can create a window with the style WS_EX_TOPMOST (keep above all other windows), WS_EX_LAYERED (for transparency/translucency) and WS_TRANSPARENT (causes input to be passed through). Check out the layered window API to learn how to draw and update such a window. If you are using Win9x, you will have to do much more work. Using window regions is one possibility... IMHO, this seems a strange way of presenting information... may i ask what this is for? farewell goodnight last one out turn out the lights

            Smashing Pumpkins, Tales of a Scorched Earth

            M Offline
            M Offline
            moliate
            wrote on last edited by
            #5

            Thanks, I'll take a look at that... Anyway, the application is an user interaction logger. By keeping track of mouse and eye movement along with window positions, cognitive scientists want to study how users interact with different programs. The transparant window is for the playback, where some statistical data will be displayed. /moliate

            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