BorderStyle example for C++ 4.0 and later

This example toggles the border style and repaints the image.

if (m_Lead1.GetBorderStyle() == 1)
   m_Lead1.SetBorderStyle(0);
else
   m_Lead1.SetBorderStyle(1);
m_Lead1.ForceRepaint();