Home › Forums › TWAIN Classic › Logitech focus isses in a background thread
- This topic has 2 replies, 2 voices, and was last updated 15 years, 2 months ago by tunji.
- AuthorPosts
Hello all,
I am using TWAIN to connect to a Logitech webcam and taking an image in a background thread (My app is written in C++).
Strangely, even though no Logitech UI is displayed, my application loses focus when Logitech captures the image. This is frustrating for my application users because they might be typing within a control when suddenly focus is lost and they have to click back on the control to continue.
I have tried various ways to ensure focus is not lost but I haven’t been able to succeed so far. Sadly, this behaviour has been found to be unique to Logitech products as others work fine.
Is this a known problem and/or can anyone offer a workaround?when does it loose focus?
.
Hello Gabe,
I lose focus in my main thread sometime between my background thread calling CallTwainProc with parameter MSG_ENABLEDS and CallTwainProc with parameter DAT_IMAGENATIVEXFER.- AuthorPosts