PaintTransitionMaxPasses example for C++ 5.0 and later

This example includes two procedures. First, a button click starts a multi-pass paint effect; then LEAD's PaintNotification event changes the direction of the effect on each pass. 

#include "L_ComEfx.h"
void CTutorDlg::OnPaintTransitionMaxPasses() 
{
   ILEADRasterIO *pRasterIO=NULL;
   CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL, IID_ILEADRasterIO, (void**)&pRasterIO);      
   m_LEADRasterView1.SetAutoRepaint(FALSE);
   // Set the effect
   m_LEADRasterView1.SetPaintEffect(EFX_EFFECT_WIPE_L_TO_R); 
   m_LEADRasterView1.SetEffectDelay(20); 
   m_LEADRasterView1.SetPaintTransitionMaxPasses(5);    // 5 total passes
   m_LEADRasterView1.SetPaintTransitionPass(1);         // Start with pass number 1
   m_LEADRasterView1.SetPaintNotificationDelay(200); // Delay 200 milliseconds between passes
   pRasterIO->Load(m_LEADRasterView1.GetRaster(), "..\\..\\..\\..\\images\\image1.cmp", 0, 0, 1);   // load the image
   m_LEADRasterView1.SetAutoRepaint(TRUE);
   pRasterIO->Release();
}