ExportZones Example for C++ 5.0 and later
void CSample_COMDlg::OnButton13()
{
int nRet = pRasterDoc->ImportZones (0, "c:\\zone.zon");
if (nRet == 0)
AfxMessageBox(TEXT("Imports the zone file into the specified page."));
//...
// work with zones...
//...
// exports page zone list to Zone file...
nRet = pRasterDoc->ExportZones (0, "c:\\zone.zon");
if (nRet == 0)
AfxMessageBox(TEXT("Exports the zone list into a zone file."));
}