Open GoogleCodeExporter opened 8 years ago
I have more or less the same problem. My WPF windows does not get close
messages as long as the Twain-Windows has the focus. Immediately if twain
windows looses focus, the message (which must be queued for a while) arrives. I
have this under Windows 7 32 and Windows XP both with different scanners and
drivers.
Original comment by Mungo...@gmail.com
on 28 Jun 2011 at 6:59
Try this
public bool UseFilter
{
get
{
return _usingFilter;
}
set
{
if (!_usingFilter && value == true)
{
System.Windows.Interop.ComponentDispatcher.ThreadFilterMessage +=
new System.Windows.Interop.ThreadMessageEventHandler(this.ThreadFilterMessage);
// _source.AddHook(FilterMessage);
_usingFilter = true;
}
if (_usingFilter && value == false)
{
System.Windows.Interop.ComponentDispatcher.ThreadFilterMessage -=
new System.Windows.Interop.ThreadMessageEventHandler(this.ThreadFilterMessage);
// _source.RemoveHook(FilterMessage);
_usingFilter = false;
}
}
}
Original comment by Joe.Ka...@gmail.com
on 23 Feb 2012 at 5:29
Original issue reported on code.google.com by
mark.amb...@gmail.com
on 24 Jun 2011 at 3:08