Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do I get a Screen Shot?

Status
Not open for further replies.

KernelObject

Programmer
Jul 25, 2001
65
IN
Hello all,

I'm working on a program where I need to get a screen shot of the whatever is there on the screen; like faking a Print Screen key press. It doesn't work with standard WM_KEYDOWN, or WM_CHAR; Pretty urgent, someone please tell me how to do it.

Regards
 
Hi, you can try this:
Build SDI application and add this line into void CChildView::OnPaint() method.
::BitBlt( dc.m_hDC, 0, 0, 200, 200, ::GetWindowDC( 0 ), 0, 0, SRCCOPY );
This copies bitmap (200x200 pixels) from desktop point(0,0) into childview of your SDI app ;-).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top