PaintSizeMode Example for C++ 4.0 and later

This example shows how to set the PaintSizeMode property so that the control uses only a vertical scroll bar.

m_Lead1.SetAutoScroll(TRUE);
m_Lead1.SetAutoSetRects(TRUE);
m_Lead1.SetPaintSizeMode(PAINTSIZEMODE_FITSIDES);
m_Lead1.ForceRepaint();