Trim example for C++ 4.0 and later

This example crops one-tenth from the bitmap and repaints the image.

float NewLeft = m_Lead1.GetBitmapWidth() * .1f;
float NewTop = m_Lead1.GetBitmapHeight() * .1f;
float NewWidth = m_Lead1.GetBitmapWidth() * .8f;
float NewHeight = m_Lead1.GetBitmapHeight() * .8f;
m_Lead1.Trim(NewLeft, NewTop, NewWidth, NewHeight);
// Set the image display size to match the LEAD control
m_Lead1.SetDstRect(0.0f, 0.0f, m_Lead1.GetScaleWidth(), m_Lead1.GetScaleHeight());
m_Lead1.SetDstClipRect(0.0f, 0.0f, m_Lead1.GetScaleWidth(), m_Lead1.GetScaleHeight());
m_Lead1.ForceRepaint();