2010年5月26日

摘要: HBITMAP CopyScreenToBitmap( LPRECT lpRect,int m_xScreen,int m_yScreen){ HDC hScrDC,hMemDC; HBITMAP hBitmap,hOldBitmap; int nX1,nX2,nY1,nY2; int nWidth,nHeight; if (IsRectEmpty(lpRect)) { return FALSE;... 阅读全文
posted @ 2010-05-26 02:30 亲,注意身体 阅读(383) 评论(0) 推荐(0) 编辑
 
摘要: 将屏幕保存为图片,使用vs2008编译通过。 view plaincopy to clipboardprint?#include"stdafx.h"#include<windows.h>#include<atlimage.h>int__stdcallWinMain(HINSTANCEhInstance,HINSTANCEhPrevInstance,LPSTRlpCmdLin... 阅读全文
posted @ 2010-05-26 02:25 亲,注意身体 阅读(1411) 评论(0) 推荐(0) 编辑