FastConfigEvent Example for C++ 5.0 and later
void CRasterTwainSink::OnFastConfigEvent(ILTFastConfig * pltResConfig)
{
CString csStr;
if (pltResConfig->Success)
{
csStr.Format(TEXT("Transfer Mode = %d\nFile Format = %d\nBuffer Size = %d\nBits Per Pixel = %d\nRequired Time = %d\n"),
pltResConfig->TransferMode,
pltResConfig->FileFormat,
pltResConfig->BufferSize,
pltResConfig->BitsPerPixel,
pltResConfig->RequiredTime);
MessageBox(NULL, csStr, TEXT("Resulting Scan Configurations..."), MB_OK);
}
else
MessageBox(NULL, TEXT("The tested configuration failed..."), TEXT("Error!"), MB_OK);
m_pView->m_pltRasTwain->StopFindFastConfig = FALSE;
}