Capture example for C++ 5.0 and later

This example captures the current form and displays the captured image with scroll bars.

// Turn on the automatic display rectangles.
m_LEADRasterView1.SetAutoSetRects(TRUE);
CRect rcWindow;
GetWindowRect(&rcWindow);
m_LEADRasterView1.GetRaster().Capture(0, (float) rcWindow.left, (float) rcWindow.top,
(float) rcWindow.Width(), (float) rcWindow.Height());
m_LEADRasterView1.SetAutoScroll(TRUE);
m_LEADRasterView1.ForceRepaint();