EnableOCRDrawing Example for C++ 5.0 and later

void TestFunction()
{
      m_pLRasterDoc->ActivePageIndex =  0;
      m_RasterView.SetRasterDocument(m_pLRasterDoc);
      m_RasterView.SetEnableOCRDrawing(TRUE);
      m_RasterView.SetSelectedZoneIndex(0);
      m_RasterView.ForceRepaint();
}