CaptureActiveWindow Example for C++ 5.0 and later
/*set status cursor*/
m_pRasterScr1.PutCaptureStatusCursorIndex(11);
/*set cancel key to ESC*/
m_pRasterScr1.PutCaptureCancelKey(VK_ESCAPE);
m_pRasterScr1.PutCaptureDelay(1000); /*wait 5 secs before starting*/
m_pRasterScr1.PutCaptureInterval(1000); /*capture every second*/
m_pRasterScr1.PutCaptureCount(25); /*capture 25 images*/
/*start the captures*/
m_pRasterScr1.CaptureActiveWindow();
/*display the results*/
CString csRes;
csRes.Format(TEXT("Window Handle:%d\n"), m_pRasterScr1.GetCaptureInfohWnd());
AfxMessageBox(csRes);