FindZones Example for C++ 5.0 and later
void CSample_COMDlg::OnButton11()
{
pRasterDoc->GetAutoZoneOptions ();
pRasterDoc->ShowZoneGridLines = TRUE;
pRasterDoc->EnableZoneForceSingleColumn = TRUE;
pRasterDoc->ZoneParser = PARSER_AUTO;
pRasterDoc->SetAutoZoneOptions ();
int nRet = pRasterDoc->FindZones (0, TRUE);
if(nRet == 0)
AfxMessageBox(TEXT("The engine found all available zones in the specified page."));
}