CaptureMenuUnderCursor Example for C++ 5.0 and later
/*set a 5 sec delay*/
m_pRasterScr1.PutCaptureDelay(5000);
/*capture a menu*/
m_pRasterScr1.CaptureMenuUnderCursor();
/*copy the captured image to a Main Control*/
m_LEADRasterView1.GetRaster().SetBitmap(m_pRasterScr1.GetBitmap ());