CaptureWindowUnderCursor Example for Builder 3.0

    /*set 3 sec delay*/
    LEADScr1->CaptureDelay = 3000;

    /*capture window under cursor*/
    LEADScr1->CaptureWindowUnderCursor();

    /*copy the captured image to a Main Control*/
    LEAD1->Bitmap = LEADScr1->Bitmap;