Link to home
Create AccountLog in
Avatar of Andrian
Andrian

asked on

How to catch the entire screen with MFC?

I want to catch the entire screen like "print screen" but by code.
need help!
Avatar of Vinayak Kumbar
Vinayak Kumbar

Hi,

Just interested.....

VinExpert
May be this is some kind of help:

MDSN ID: Q59380
How to Do a Print Screen Within a Program

 
 
ASKER CERTIFIED SOLUTION
Avatar of Zoppo
Zoppo
Flag of Germany image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
excuse me for this //Detach();, just an artefact from testing    :)
Avatar of Andrian

ASKER

why doesn't it work (it just show the zip icon but not the entire screen)
I'm not sure ... given code works on my system (WinNT4) ... perhaps try it without the clipboard stuff, just bitblt the memory dc's content to a window...
Avatar of Andrian

ASKER

Thanks!it works without the clipboard staff.