Capture example for C++ 4.0 and later

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

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