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. Screenshot of a hidden window

Screenshot of a hidden window

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
4 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.
  • C Offline
    C Offline
    C lviu
    wrote on last edited by
    #1

    Does anyone know how to get a screenshot of a window witch is hidden (WS_VISIBLE = 0). I tried to send WM_PRINTCLIENT to that window, but it doesn't seem to work. I realy need that window to draw itself somehow into a device context I specify. Please tell me if you know something about this. Thanks

    L J 2 Replies Last reply
    0
    • C C lviu

      Does anyone know how to get a screenshot of a window witch is hidden (WS_VISIBLE = 0). I tried to send WM_PRINTCLIENT to that window, but it doesn't seem to work. I realy need that window to draw itself somehow into a device context I specify. Please tell me if you know something about this. Thanks

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      How about making it visible for only a few milliseconds and take a screenshot meanwhile?

      C 1 Reply Last reply
      0
      • L Lost User

        How about making it visible for only a few milliseconds and take a screenshot meanwhile?

        C Offline
        C Offline
        C lviu
        wrote on last edited by
        #3

        Yes I know, I had that idea myself but my boss doesn't like it. There must be some other way. Thanks anyway.

        1 Reply Last reply
        0
        • C C lviu

          Does anyone know how to get a screenshot of a window witch is hidden (WS_VISIBLE = 0). I tried to send WM_PRINTCLIENT to that window, but it doesn't seem to work. I realy need that window to draw itself somehow into a device context I specify. Please tell me if you know something about this. Thanks

          J Offline
          J Offline
          Joe Woodbury
          wrote on last edited by
          #4

          Be aware that some windows simply can't be made visible. They have no paint routines and/or incomplete settings for the window creation itself. While not as common under Win32, it is still sometimes the easiest way to do some things. Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke

          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