CharacterOptions Example for C++ 5.0 and later

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

   // Update Character Options... 
   pRasterDoc->GetResultOptions ()->GetCharacterOptions ()->SelOutputFont = SELPREDEFINED; 
   pRasterDoc->GetResultOptions ()->GetCharacterOptions ()->FontNames [0] = FONTPROPORTSERIF; 
   pRasterDoc->GetResultOptions()->GetCharacterOptions ()->FontNames [1] = FONTPREDEFFONT; 
   pRasterDoc->GetResultOptions()->GetCharacterOptions ()->FontNames [2] = FONTMONOSERIF; 
   pRasterDoc->GetResultOptions()->GetCharacterOptions ()->FontNames [3] = FONTPROPORTSANSSERIF; 
   pRasterDoc->GetResultOptions()->GetCharacterOptions ()->FontNames [4] = FONTMONOSANSSERIF; 
   pRasterDoc->GetResultOptions()->GetCharacterOptions ()->Size = 24; 
   pRasterDoc->GetResultOptions()->GetCharacterOptions ()->Bold = TRUE; 
   pRasterDoc->GetResultOptions()->GetCharacterOptions ()->Italic = FALSE; 
   pRasterDoc->GetResultOptions()->GetCharacterOptions ()->Underline = TRUE; 

   pRasterDoc->SetRecognitionResultOptions ();
}