Thanks Jaime... I know how to capture an image from screen.
I want ability to let user draw a shape, a rectangle on screen... So I can capture only that area of screen....
Any ideas?
Main Topics
Browse All TopicsHi
I want to create simple capture screen tool, I want to let user to draw a rectangle on screen and I'll capture image of that part of screen.
Any sample codes for this problem?
Thanks from now
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
SnagIt - this app can you give an idea how your application may look like.
http://www.softwareca
Here is an example: http://www.codeproject.com
Here is an another example in C-style that promises to do exactly what you are asking in your last comment:
Actual
GetDesktopWindow gives the desktop window handle. It is a parent window for all other windows. You need to draw over all these windows.
I cannot say that to draw on the desktop is a very nice thing to do. Also you will need to control the cursor - position and movement and, probably the keyboard. So you may need a hook.
Another idea can be to copy the current state of the desktop into your application. Then, in your application it will be very easy for you to select an area and make a file from it.
this article contains all you are asking http://www.codeproject.com
It is in C# and you need to translate the logic to C++.
Screen Capture (Simple Win32 Dialog Based) - C++, uses mouse hook, source code and a demo app.
Business Accounts
Answer for Membership
by: jaime_olivaresPosted on 2009-11-04 at 03:37:08ID: 25738281
There are many examples at codeproject.com: /KB/cpp/ Sc reen_Captu re__Win32_ .aspx /KB/GDI/ ba rry_s_scre en_capture .aspx /KB/graphi cs/screenc apture.asp x /KB/mcpp/i jwscrcap.a spx
http://www.codeproject.com
http://www.codeproject.com
http://www.codeproject.com
http://www.codeproject.com