OffsetZones Example for C++ 5.0 and later
void CSample_COMDlg::OnButton28()
{
CClientDC * pDc = new CClientDC(this);
pRasterDoc->DrawPersistence = FALSE;
pRasterDoc.OffsetZones(0, 0);
int nRet = pRasterDoc->SelectZoneByPoint(NULL, (long)pDc->m_hDC, 0, 100, 100);
if (nRet == 0)
{
CString csString;
csString.Format (TEXT("The selected zone index = %d\n"), pRasterDoc->SelectZoneIndex);
AfxMessageBox(csString);
}
}