UpdateZoomView Example for Visual C++ 5.0 and later

ILEADRasterZoomView * pZoomView;
int nCount = 0;

HRESULT hr = CoCreateInstance(
                             CLSID_LEADRasterZoomView, 
                             NULL, 
                             CLSCTX_ALL, 
                             IID_ILEADRasterZoomView, 
                             (void**)&pZoomView
                             );


if (m_RasterView.GetHasZoomView())
{
   nCount = m_RasterView.GetZoomViewsCount();
   for (int i = 0; i< nCount; ++i)
   {
      pZoomView->Index = i;
      m_RasterView.GetZoomView(pZoomView);
      pZoomView->EnableCallouts = FALSE;
      m_RasterView.UpdateZoomView(pZoomView);
   }
}

pZoomView->Release();