I am working on a magnifying glass app and I am trying to hook up mouse input to the magnified view. It works fine, in the sense that the input is received by the target process/window using attachThreadInput and mouse_event. The problem is, for example, with a mouse click which goes something like this....
-mouse left down received by magnify view
-attachInput to target .. which shifts focus to target
-mouse left down send to target
-detachInput..
-mouse left up receive by magnify view, removes focus from target
-attachInput to target .. which shifts focus to target
-mouse left up send to target
-detach input
Now the problem I believe is with the focus shifting.. Is there a way to avoid this? Can the magnify view accept mouse input but not get focus? Should I use directInput?
Jason
Start Free Trial