2013年10月17日

屏幕截图保存文件

摘要: CDC *pDC;//屏幕DC pDC = CDC::FromHandle(::GetDC(NULL));//获取当前整个屏幕DC int BitPerPixel = pDC->GetDeviceCaps(BITSPIXEL);//获得颜色模式 int Width = pDC->GetDeviceCaps(HORZRES); int Height = pDC->GetDeviceCaps(VERTRES); CDC memDC;//内存DC memDC.CreateCompatibleDC(pDC); CBitmap memBitmap, *o... 阅读全文

posted @ 2013-10-17 22:40 快乐的大猪 阅读(198) 评论(0) 推荐(0) 编辑

导航