BitonalScaling example for C++ 4.0 and later

This example sets the display to use scale-to-gray and repaints the image. This affects only 1-bit images.

if (m_Lead1.IsSupportLocked(L_SUPPORT_DOCUMENT))
{
   CString cMsg("No scale to gray - You need to unlock Document/Medical capabilities");
   MessageBox(cMsg, "Error");
}
else
{
   m_Lead1.SetBitonalScaling(BITONALSCALING_SCALETOGRAY);
   m_Lead1.ForceRepaint();
}