p;//MessageBox(NULL,"Error reading a frame!","Error",MB_OK | MB_ICONEXCLAMATION);
AfxMessageBox(IDS_CAPTURE_FAIL);
AfxPostQuitMessage(0);
//exit(1);
}
#ifndef _DIRECTX_captureScreenFrame
DeleteObject(hbm);
DeleteDC(hMemDC);
#endif
//if flashing rect
if (flashingRect && !tempDisableRect) {
if (autopan) {
DrawFlashingRect(FALSE , 1);
}
else
DrawFlashingRect(FALSE , 0);
}
#ifndef _DIRECTX_captureScreenFrame
ReleaseDC(NULL,hScreenDC) ;
#else
theApp.DirectXUninit();
#endif
return pBM_HEADER;
}