StopFeedPages Example for C++ 5.0 and later
void CTwainView::OnTwainAcquire()
{
short iRet;
m_ltRasView.SetAutoRepaint(VARIANT_TRUE);
m_ltRasView.SetBackErase(VARIANT_FALSE);
m_ltRasView.GetRaster().SetBitmapList (0);
// select ADF option from the user interface
iRet = m_pltRasTwain->Acquire (L_LTWAIN_SHOW_USER_INTERFACE);
if (iRet != 0)
MessageBox (TEXT("Error acquiring from source"));
}
void CRasterTwainSink::OnAcquire (long pBitmap)
{
m_pView->m_ltRasView.GetRaster().InsertBitmapListItem (-1, pBitmap);
m_pView->m_pltRasTwain->StopFeedPages = FALSE;
}