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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How create a GUI to allow screen capture?

How create a GUI to allow screen capture?

Scheduled Pinned Locked Moved C / C++ / MFC
question
8 Posts 4 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
    Member 2965471
    wrote on last edited by
    #1

    How create a GUI to allow screen capture?

    A 1 Reply Last reply
    0
    • M Member 2965471

      How create a GUI to allow screen capture?

      A Offline
      A Offline
      Albert Holguin
      wrote on last edited by
      #2

      You mean other than the built in windows one? Do you only want a subset of your screen captured?

      M 1 Reply Last reply
      0
      • A Albert Holguin

        You mean other than the built in windows one? Do you only want a subset of your screen captured?

        M Offline
        M Offline
        Member 2965471
        wrote on last edited by
        #3

        I want to implement a mechanism that allows users to easy select the capture area (the entire screen, the window of a program, a rectangle, ...)...is it possible?

        M 1 Reply Last reply
        0
        • M Member 2965471

          I want to implement a mechanism that allows users to easy select the capture area (the entire screen, the window of a program, a rectangle, ...)...is it possible?

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          Yes it's possible. Which part are you not sure about?

          Mark Salsbery Microsoft MVP - Visual C++ :java:

          M 1 Reply Last reply
          0
          • M Mark Salsbery

            Yes it's possible. Which part are you not sure about?

            Mark Salsbery Microsoft MVP - Visual C++ :java:

            M Offline
            M Offline
            Member 2965471
            wrote on last edited by
            #5

            I want to realize a GUI like this: With mouse pointer I'd want: Entire Screen Capture Program Window Capture Part of a Program Window Select Generic Rectangle but I don't know which API I've to use in order to do this. May you help me please?

            A 1 Reply Last reply
            0
            • M Member 2965471

              I want to realize a GUI like this: With mouse pointer I'd want: Entire Screen Capture Program Window Capture Part of a Program Window Select Generic Rectangle but I don't know which API I've to use in order to do this. May you help me please?

              A Offline
              A Offline
              Amarnath S
              wrote on last edited by
              #6

              This is possible. One of the early editions of Petzold's Windows books - "Programming Windows 95" gives an example of the BitBlt() which does exactly this. This is done in raw Windows API. You can, of course, redo it in C# or your favorite language.

              M 1 Reply Last reply
              0
              • A Amarnath S

                This is possible. One of the early editions of Petzold's Windows books - "Programming Windows 95" gives an example of the BitBlt() which does exactly this. This is done in raw Windows API. You can, of course, redo it in C# or your favorite language.

                M Offline
                M Offline
                Member 2965471
                wrote on last edited by
                #7

                yes, i know BitBlt(), but how can i get the handle of the window that mouse over?how can i select, with mouse, a rectangle of the screen?

                M 1 Reply Last reply
                0
                • M Member 2965471

                  yes, i know BitBlt(), but how can i get the handle of the window that mouse over?how can i select, with mouse, a rectangle of the screen?

                  M Offline
                  M Offline
                  Mark Salsbery
                  wrote on last edited by
                  #8

                  Member 2965471 wrote:

                  but how can i get the handle of the window that mouse over?how can i select, with mouse, a rectangle of the screen?

                  This is relatively simple if you know anything about Win32 UI/graphics programming. Since you seem to want to skip that part, why not just search for examples? Binging "win32 draw selection rectangle on desktop" finds many examples, including this... Screen Capture (Simple Win32 Dialog Based)[^]

                  Mark Salsbery Microsoft MVP - Visual C++ :java:

                  modified on Saturday, May 14, 2011 12:44 PM

                  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