EnableProgressStatusEvent Example for C++ 5.0 and later
void CSampleSink::OnProgressStatus(OCR_PROCESS_ID ID, short iPercent, short iAcceptCharCount, short iRejectCharCount, long lObjSize, BSTR bstrObjData)
{
pRasterDoc->StopProgressStatusEvent = FALSE;
}
void CSample_COMDlg::OnButton2()
{
int nRet = pRasterDoc->EnableProgressStatusEvent(TRUE);
if (nRet == 0)
AfxMessageBox(TEXT("The Progress Status was called."));
}