摘要: 在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* pOldBitmap=memDC.Sel 阅读全文