Snapshot the screen

Posted on 2000-03-20
Last Modified: 2013-11-20
I have an hwnd that I do not control its OnPaint. I want to get create a bmp file that capture the window bitmap pixels. How can i do it?????
Question by:dvory
  • 2
  • 2

Accepted Solution

tchalkov earned 50 total points
ID: 2635839
there is a good example on how to capture the whole screen in MSDN under the "Capturing an Image" title - search for it.
It can easily be modified to capture a specific window, not the whole screen
LVL 31

Expert Comment

ID: 2635864
LVL 31

Expert Comment

ID: 2635873
tchalkov, the given example does not provide any possibility to save image as bmp...

Expert Comment

ID: 2635884
In the same topic two titles bellow there is one called "Storing an image". It describes storing a bitmap.

BTW the whole topic is a good reading to start with.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now