Solved

ALT+PRINT SCREEN

Posted on 1997-03-11
1
273 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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
Generic progress indicator 6 119
unix example issues 18 106
Problem to open Excel file 15 227
How do I get Window Title of all opened process? 4 39
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.

730 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