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 Windows and DirectX ??? [modified]

Layered Windows and DirectX ??? [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
game-devquestiongraphicshelp
2 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.
  • L Offline
    L Offline
    leenmie
    wrote on last edited by
    #1

    I create a topmost window using CreateWindowEx() function (use WS_EX_WINDOWLAYERED|WS_EX_TOPMOST). It is normal, but when my window is upper an window form of an application which use DirectX (such as a game), my window disappear ??? Only the part upper window which use DirectX is disappear, other part is oke. What is this problem ???

    V 1 Reply Last reply
    0
    • L leenmie

      I create a topmost window using CreateWindowEx() function (use WS_EX_WINDOWLAYERED|WS_EX_TOPMOST). It is normal, but when my window is upper an window form of an application which use DirectX (such as a game), my window disappear ??? Only the part upper window which use DirectX is disappear, other part is oke. What is this problem ???

      V Offline
      V Offline
      Viorel
      wrote on last edited by
      #2

      I suppose that DirectX engine, for performance reasons, uses a specific mode of transferring images to video controller. I think the data are put directly to video buffer, at a point in which the Windows system does not have access. That’s why Windows cannot combine DirectX image with your frame to apply transparency effect. The DirectX frame can be only clipped, but cannot be read. In my tests, even Print Screen button does not include the image which belongs to a DirectX frame. (I do not now about other environments; I suppose that if Print Screen works there, then the transparency will work too). I think there is no problem in your application. It is a way in which DirectX and Windows interact.

      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