DestroyZoomView Example for Visual C++ 5.0 and later

int nCount;

if(m_RasterView.GetHasZoomView())
{
   nCount = m_RasterView.GetZoomViewsCount();
   for (int i = 0; i<nCount ;++i)
      m_RasterView.DestroyZoomView(nCount-i-1);
}