EnablePaint example for C++ 5.0 and later

   ILEADRasterProcess *pRasterProc=NULL;
   CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL,
                    IID_ILEADRasterProcess, (void**)&pRasterProc);
   // disable the paint
   m_LEADRasterView1.SetEnablePaint(FALSE);
   // do whatever changes you want. The control will not repaint
   pRasterProc->Size(m_LEADRasterView1.GetRaster(),
                     m_LEADRasterView1.GetRaster().GetBitmapWidth() * 2,
                     m_LEADRasterView1.GetRaster().GetBitmapHeight() * 2,
                     RESIZE_BICUBIC);
   // re-enable the paint
   m_LEADRasterView1.SetEnablePaint(TRUE);
   // call ForceRepaint because the control will not automatically repaint 
   m_LEADRasterView1.ForceRepaint();
   pRasterProc->Release();