|
-
January 9th, 2003, 08:34 AM
#1
Capture Screen in Win2000
this code give black hbitmap ,please assist
HDC dc_desk=::GetWindowDC(::GetDesktopWindow());
HDC dc=::CreateCompatibleDC(dc_desk);
HBITMAP hBmp=::CreateCompatibleBitmap(dc, 1024, 768);
::BitBlt(dc, 0, 0, 1024, 768, dc_desk, 0, 0, SRCCOPY);
//static control to show the bitmap
m_ShowPic.SetBitmap(hBmp);
UpdateData(FALSE);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|