NumberFramesInOverlay example for C++ 5.0 and later

   ILEADRasterProcess* m_pRasterProc= NULL;
   CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&m_pRasterProc);
   CString strOut;

   m_pRasterProc->GetOverlayAttributes( m_LeadRasterView.GetRaster() ,  0, OVERLAYATTRIBUTES_FLAGS);

   strOut.Format("NumberFramesInOverlay = %d\n"
                 "ImageFrameOrigin      = %d\n"
                 "ActivationLayer       = %s",
                  m_pRasterProc->OverlayAttributes->NumberFramesInOverlay,
                  m_pRasterProc->OverlayAttributes->ImageFrameOrigin,
                  m_pRasterProc->OverlayAttributes->ActivationLayer);
   
   MessageBox(strOut);
   m_pRasterProc->Release();