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. How to get the whole view's screen shot when the view has scroll bar ?

How to get the whole view's screen shot when the view has scroll bar ?

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

    Hello ,everybody ! I want to get the whole screen shot in the SDI project,then save it to a bitmap file. usually ,the shot just relative to the Device. I want get the whole view's screen shot ,whether the view is be hide by other window. Is there anyway ? Thanks for your reply !

    D L 2 Replies Last reply
    0
    • W wangningyu

      Hello ,everybody ! I want to get the whole screen shot in the SDI project,then save it to a bitmap file. usually ,the shot just relative to the Device. I want get the whole view's screen shot ,whether the view is be hide by other window. Is there anyway ? Thanks for your reply !

      D Offline
      D Offline
      Dr Walt Fair PE
      wrote on last edited by
      #2

      Bring it to the front before taking the screen shot??

      CQ de W5ALT

      Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

      W 1 Reply Last reply
      0
      • D Dr Walt Fair PE

        Bring it to the front before taking the screen shot??

        CQ de W5ALT

        Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

        W Offline
        W Offline
        wangningyu
        wrote on last edited by
        #3

        Thanks ! your mean's than call some funtion to show at first. but I think this isn't the goodness. Is there other way ? :)

        D 1 Reply Last reply
        0
        • W wangningyu

          Thanks ! your mean's than call some funtion to show at first. but I think this isn't the goodness. Is there other way ? :)

          D Offline
          D Offline
          Dr Walt Fair PE
          wrote on last edited by
          #4

          As far as I know, when you do a screen shot, you get what is on the screen. If part of your content is hidden by other windows, then you need to bring it to the front to take a screen shot. If it is too large for the screen and is partially hidden because it has scrolled, then you have a different problem. Perhaps someone else has a better idea.

          CQ de W5ALT

          Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

          W 1 Reply Last reply
          0
          • D Dr Walt Fair PE

            As far as I know, when you do a screen shot, you get what is on the screen. If part of your content is hidden by other windows, then you need to bring it to the front to take a screen shot. If it is too large for the screen and is partially hidden because it has scrolled, then you have a different problem. Perhaps someone else has a better idea.

            CQ de W5ALT

            Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

            W Offline
            W Offline
            wangningyu
            wrote on last edited by
            #5

            It's ?

            1 Reply Last reply
            0
            • W wangningyu

              Hello ,everybody ! I want to get the whole screen shot in the SDI project,then save it to a bitmap file. usually ,the shot just relative to the Device. I want get the whole view's screen shot ,whether the view is be hide by other window. Is there anyway ? Thanks for your reply !

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

              Koma Wang wrote:

              Is there anyway ?

              Yes, you can send the window the WM_PRINT[^] or WM_PRINTCLIENT[^] message and ask the win32k subsystem to paint into the device context you pass in the wParam. Not all windows support these messages (such as windows using DirectDraw) so your results may vary. Best Wishes, -David Delaune

              W 1 Reply Last reply
              0
              • L Lost User

                Koma Wang wrote:

                Is there anyway ?

                Yes, you can send the window the WM_PRINT[^] or WM_PRINTCLIENT[^] message and ask the win32k subsystem to paint into the device context you pass in the wParam. Not all windows support these messages (such as windows using DirectDraw) so your results may vary. Best Wishes, -David Delaune

                W Offline
                W Offline
                wangningyu
                wrote on last edited by
                #7

                Thanks ! I have a try soon. :)

                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