SelectedItems example for C++ 5 and later

   long x;
   x = m_LEADRasterImgList1.GetSelectedCount();
   while(x > 0)
   {
      m_LEADRasterImgList1.SelectedItems(0).SetSelected(FALSE);
      x = m_LEADRasterImgList1.GetSelectedCount();
   }