Hello,
How do I take snapshots in MFC?
Thanks
Hello,
How do I take snapshots in MFC?
Thanks
Of what?
Your File System....the Registry....Your family on holiday?
NO!!! THE ALIENS ON PLUTO!!!!!!!
You can't take snpshots of the aliens on Pluto, everybody knows aliens come from Uranus.
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
Sorry, I mean of the screen, as if you press print screen.
A crude way would be to send a message to the computer to make it think you pushed print screen. Then, you can take the image from the clipboard.
There are probably better ways though.
I have never done screen captures but....
I think if you GetDC(NULL) it would contain the main screen.
You could push the BMP out with SelectObject() then using GetDIBits() you could get the image. Then all you would have to do is create a header (I forget the function) for the BMP and save it and the bits to a file.
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill