Solved

ALT+PRINT SCREEN

Posted on 1997-03-11
1
269 Views
Last Modified: 2013-11-19
I would like to know how to simulate the keystroke ALT+PRINT SCREEN.   I need to get a snap snot of the screen and put to the clipboard with out hitting the keystroke ALT+PRINT SCREEN.  How would I do this?
0
Comment
Question by:jgraham031197
1 Comment
 
LVL 11

Accepted Solution

by:
mikeblas earned 100 total points
ID: 1300135
You can get a screen DC by calling

      HDC hdcScreen = ::GetDC(NULL);

Given that DC, you can use StretBlt() to copy the bitmap on the screen to your own DC.  Then, you can use GetObject() get the raw bitmap bits and load up your own HBITMAP structure to toss onto the clipboard.

I think a couple of the SDK samples have source code that demonstrates this kind of thing.

.B ekiM


0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
maxBlock challenge 30 142
dog bark java program 15 107
Execute multiple curl cmds with sleep and send output to file 10 104
SQUD PROXY SERVER, UNIX, SLL/HTTPS 5 103
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: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

809 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