UpdateZoneArea Example for C++ 5.0 and later
void CSample_COMDlg::OnButton30()
{
   CClientDC * pDc = new CClientDC(this); 
   pRasterDoc->DrawPersistence = FALSE; 
   int nRet = pRasterDoc->SelectZoneByPoint (NULL, (long)pDc->m_hDC, 0, 100, 100); 
   if (nRet == 0) 
   {
      float fLeft = (float)pRasterDoc->GetSelectedZone (0)->Left; 
      float fTop = (float)pRasterDoc->GetSelectedZone (0) ->Top; 
      float fRight = (float)pRasterDoc->GetSelectedZone (0)->Right; 
      float fBottom = (float)pRasterDoc->GetSelectedZone (0)->Bottom; 
      nRet = pRasterDoc->UpdateZoneArea (0, pRasterDoc->SelectZoneIndex, 
                                        fLeft + 10, 
                                        fTop + 10, 
                                        fRight + fLeft + 50, 
                                        fBottom + fTop + 50); 
      if (nRet == 0) 
         AfxMessageBox(TEXT("The selected zone area is updated."));
   }
}