SaveResolutionCount example for C++ 4.0 and later

int i;
   CString csOut;
   CString cstmp;

   // assume that our bitmap is 800 x 600
   // save 3 resolutions
   m_LEAD1.SetSaveResolutionCount(3);

   m_LEAD1.SetSaveResolutionWidth(0,800.0f);
   m_LEAD1.SetSaveResolutionHeight(0,600.0f);
   m_LEAD1.SetSaveResolutionWidth(1,400.0f);
   m_LEAD1.SetSaveResolutionHeight(1,300.0f);
   m_LEAD1.SetSaveResolutionWidth(2,200.0f);
   m_LEAD1.SetSaveResolutionHeight(2,150.0f);

   // get the SaveResolution info

   csOut.Format("SaveResolutionCount = %d",
                m_LEAD1.GetSaveResolutionCount());
   AfxMessageBox(csOut);

   csOut.Empty();
   for( i = 0; i<m_LEAD1.GetSaveResolutionCount(); i++ )
   {
      cstmp.Format("SaveResolution(%d) = %.2f x %.2f\n",
                   i,
                   m_LEAD1.GetSaveResolutionWidth(i),
                   m_LEAD1.GetSaveResolutionHeight(i));
      csOut = csOut + cstmp;
   }
   AfxMessageBox(csOut);