Advertisement

08.26.2003 at 01:39PM PDT, ID: 20720742
[x]
Attachment Details

mouse_event problems

Asked by mite51 in Windows Programming

Tags: mouse_event

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?

JasonStart Free Trial
[+][-]08.26.2003 at 05:28PM PDT, ID: 9228771

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Windows Programming
Tags: mouse_event
Sign Up Now!
Solution Provided By: bjornsone
Participating Experts: 1
Solution Grade: A
 
 
[+][-]08.31.2003 at 11:51PM PDT, ID: 9259974

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32