写窗口图像到BMP位图文件
摘要:vc++如何将客户区存为bmp 在view类中添加以下三个函数:BOOL CTestestView::WriteWindowToDIB(LPTSTR szFile, CWnd *pWnd){ CBitmap bitmap; CWindowDC dc(pWnd); CDC memDC; CRect rect; memDC.CreateCompatibleDC(&dc); pWnd->GetWindowRect(rect); bitmap.CreateCompatibleBitmap(&dc,rect.Width(),rect.Height()); CBitmap* pOld
阅读全文
posted @ 2012-02-17 17:27
浙公网安备 33010602011771号