[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

ALT+PRINT SCREEN

Posted on 1997-03-11
1
Medium Priority
?
280 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 200 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

650 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