?
Solved

ALT+PRINT SCREEN

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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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…
Suggested Courses
Course of the Month11 days, 12 hours left to enroll

752 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