Results 1 to 7 of 7

Thread: Save a screenshot

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    241

    Save a screenshot

    how would i get a screenshot of the computer that I am on? I would like to save it to a file or anything along that line.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    You could try simulating the pressing of PrintScreen.

    Or you could obtain the desktop DC and BitBlt it's entire contents to an offscreen DC.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3
    Addicted Member jmiller's Avatar
    Join Date
    Jul 2002
    Location
    University of Michigan
    Posts
    238
    unfortunatly the desktop dc does not include the startbar, so it wouldn't be a full screenshot

  4. #4
    Hyperactive Member
    Join Date
    Aug 2002
    Posts
    352
    yah...simulation.. have it hold printscreen then press alt. I think he's asking more how you would do that.

  5. #5

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    241
    ok i managed to get the screenshot into a HBITMAP. Now how can i save this to a file?

  7. #7
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Either with your own saving routine or with the GDI+.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width