winapi - MouseDown and then MouseUp doesn't work -


I am trying to redirect the mouse inputs to my Windows 7 application in another window. If I get WMLUBUTUTUP, then it works (This works (where the mouse mode and the mouseup is the Win API in the input penalty):

  SetOnged Wando (other window); SetCursorPos (somewhere On the window); Mouse down (); MouseUp (); SetCursorPos (back); Set offground window (main window);  

But I just do not want to release the mouse, I have all the movements, including movements and dragging To capture mouse content I want to be able.

So this is the next to make a logical point but it does not work:

  WM_LBUTTONDOWN: Do everything as before without the mouseover ( ) WM_LBUTTONUP: Do everything already without the mousedown ()  

This does not work for regular clicks too. I do not know why can someone help?

The mouse button is fun when it gets down, at some level, I change (and I think that mouse is eaten up at some point, but I can not remember it correctly).

This can be confusing your code in any number, but if other windows (or not) are being changed to click the button / mouse, then it can confuse your code.

I recommend that you print many debugging information and try to know what the system is doing.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -