Hi,
I'm developing a scanner app on windows with the help of "NCTwainClient" lib. This lib has an example using MFC. I want to use this lib on my Qt app and the problem is this code(on MFC):
BOOL CPolyScanMFCView::PreTranslateMessage(MSG* pMsg)
{
//////////////////////////////////////////////
// The exact way to process messages by TWAIN:
//
return (OnTwainMessage(pMsg) || CFormView::PreTranslateMessage(pMsg));
}
BOOL CPolyScanMFCView::PreTranslateMessage(MSG* pMsg)
{
//////////////////////////////////////////////
// The exact way to process messages by TWAIN:
//
return (OnTwainMessage(pMsg) || CFormView::PreTranslateMessage(pMsg));
}
To copy to clipboard, switch view to plain text mode
When the app recives a MSG*, this function is called and there it is passed to the "NCTwainClient" that would check if is a Twain message. If the message is not a twain message it is processed by the CFormView.
The Twain messages are posted when the scanner finish scanning every image.
Anyone have an idea to how do this on Qt?
Thanks,
Bookmarks