MarkOptions Example for C++ 5.0 and later

void CSample_COMDlg::OnButton37()
{
   pRasterDoc->GetRecognitionResultOptions ();

   pRasterDoc->GetResultOptions ()->GetMarkOptions ()->ColorSuspectCharacter = COL_BW; 
   pRasterDoc->GetResultOptions()->GetMarkOptions ()->ColRejectionSymbol = COL_BW | COL_GRAY; 
   pRasterDoc->GetResultOptions()->GetMarkOptions ()->ColMissingSymbol = COL_NONEGR; 
   pRasterDoc->GetResultOptions ()->GetMarkOptions ()->ColSuspectWord = COL_ORIGINAL; 

   pRasterDoc->SetRecognitionResultOptions ();

   CString csBuffer; 

   csBuffer.Format (TEXT("Separator Before Suspect Character = %s\nSeparator Before Rejection Symbol = %s\nSeparator Before Missing Symbol = %s\nSeparator Start Suspect Word = %s\nSeparator End Suspect Word = %s\nSeparator Start Line = %s\nSeparator End Line = %s\nSeparator Start Table Row = %s\nSeparator End Table Row = %s\nSeparator Start Paragraph = %s\nSeparator End Paragraph = %s\nSeparator Start Zone = %s\nSeparator End Zone = %s\nSeparator Start Page = %s\nSeparator End Page = %s\n"),
                   pRasterDoc->GetResultOptions ()->GetMarkOptions ()->SeparatorBeforeSuspectCharacter
                   pRasterDoc->GetResultOptions()->GetMarkOptions ()->SeparatorBeforeRejectionSymbol
                   pRasterDoc->GetResultOptions()->GetMarkOptions ()->SeparatorBeforeMissingSymbol
                   pRasterDoc->GetResultOptions()->GetMarkOptions ()->SeparatorStartSuspectWord
                   pRasterDoc->GetResultOptions()->GetMarkOptions ()->SeparatorEndSuspectWord
                   pRasterDoc->GetResultOptions()->GetMarkOptions()->SeparatorStartLine
                   pRasterDoc->GetResultOptions()->GetMarkOptions()->SeparatorEndLine
                   pRasterDoc->GetResultOptions()->GetMarkOptions()->SeparatorStartTableRow
                   pRasterDoc->GetResultOptions()->GetMarkOptions()->SeparatorEndTableRow
                   pRasterDoc->GetResultOptions()->GetMarkOptions()->SeparatorStartParagraph
                   pRasterDoc->GetResultOptions()->GetMarkOptions()->SeparatorEndParagraph
                   pRasterDoc->GetResultOptions()->GetMarkOptions()->SeparatorStartZone
                   pRasterDoc->GetResultOptions()->GetMarkOptions()->SeparatorEndZone
                   pRasterDoc->GetResultOptions()->GetMarkOptions()->SeparatorStartPage
                   pRasterDoc->GetResultOptions()->GetMarkOptions ()->SeparatorEndPage); 

   AfxMessageBox(csBuffer); 
}