CaptureWindowUnderCursor Example for C++ 5.0 and later
/*set 3 sec delay*/
m_pRasterScr1.PutCaptureDelay(3000);
/*capture window under cursor*/
m_pRasterScr1.CaptureWindowUnderCursor();
/*copy the captured image to a Main Control*/
m_LEADRasterView1.GetRaster().SetBitmap(m_pRasterScr1.GetBitmap ());