Taking Snapshots?

This is a discussion on Taking Snapshots? within the Windows Programming forums, part of the Platform Specific Boards category; Hello, How do I take snapshots in MFC? Thanks...

  1. #1
    Unregistered
    Guest

    Taking Snapshots?

    Hello,

    How do I take snapshots in MFC?

    Thanks

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Of what?

    Your File System....the Registry....Your family on holiday?

  3. #3
    Unregistered
    Guest
    NO!!! THE ALIENS ON PLUTO!!!!!!!

  4. #4
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,856
    You can't take snpshots of the aliens on Pluto, everybody knows aliens come from Uranus.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  5. #5
    Unregistered
    Guest
    Sorry, I mean of the screen, as if you press print screen.

  6. #6
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136
    A crude way would be to send a message to the computer to make it think you pushed print screen. Then, you can take the image from the clipboard.

    There are probably better ways though.

  7. #7
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,856
    I have never done screen captures but....

    I think if you GetDC(NULL) it would contain the main screen.

    You could push the BMP out with SelectObject() then using GetDIBits() you could get the image. Then all you would have to do is create a header (I forget the function) for the BMP and save it and the bits to a file.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. XP taking about 8 min to boot and 12 to respond
    By VirtualAce in forum Tech Board
    Replies: 28
    Last Post: 09-21-2008, 02:15 AM
  2. taking Function's address
    By arjunajay in forum C++ Programming
    Replies: 2
    Last Post: 09-12-2005, 05:55 AM
  3. Taking away in increments
    By oobootsy1 in forum C++ Programming
    Replies: 4
    Last Post: 03-05-2004, 01:13 PM
  4. q-Analysis - worth taking a course over?
    By Captain Penguin in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 11-04-2002, 04:09 PM
  5. Please help me
    By teedee46 in forum C++ Programming
    Replies: 9
    Last Post: 05-06-2002, 11:28 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21