请问:我如何实现从屏幕上截图,并保存到内存的图中(bmpMBoard),我是准备在重绘前将窗口截图,重绘时把图贴回去。
CLientDC XXDC(this)
Graphics memGraphics ;
Bitmap bmpMBoard(XXXWidth , XXXHeigh) ;
Graphics memGraphics (&bmpMBoard);
Graphics scrGraphics( screenDC->GetSafeHdc());
///绘图
///
// 输出
memGraphics .XXXXXXX
///
scrGraphics.DrawImage(&bmpMBoard , 0 , 0)