PaintScaling (ILEADRasterImgList) example for C++ 5.0 and later

   //toggle through the paint scale modes
   switch(m_LEADImageList.GetPaintScaling())
   {
      case IMGLST_PAINTSCALING_NORMAL:
         m_LEADImageList.SetPaintScaling(IMGLST_PAINTSCALING_RESAMPLE);
         this->SetWindowText(TEXT("Resample"));
         break;
      case IMGLST_PAINTSCALING_RESAMPLE:
         m_LEADImageList.SetPaintScaling(IMGLST_PAINTSCALING_BICUBIC);
         this->SetWindowText(TEXT("Bicubic"));
         break;
      case IMGLST_PAINTSCALING_BICUBIC:
         m_LEADImageList.SetPaintScaling(IMGLST_PAINTSCALING_NORMAL);
         this->SetWindowText(TEXT("Normal"));
         break;
   }
   //force redraw
   m_LEADImageList.RedrawWindow ();