How To Send Mouse event To wndproc
-
Hello All i am working in Win32 VC++ using VS 6.0 My window works fine and is Minimized in TaskBar.... if i click the mouse on Desktop (i.e not on my window).....is there any way so that my window come to know that the mouse has clicked down......i.e in short i want to send the mouse events to my window from anywhere. Thankx In Advance regards aabid
-
Hello All i am working in Win32 VC++ using VS 6.0 My window works fine and is Minimized in TaskBar.... if i click the mouse on Desktop (i.e not on my window).....is there any way so that my window come to know that the mouse has clicked down......i.e in short i want to send the mouse events to my window from anywhere. Thankx In Advance regards aabid
Aabid wrote:
is there any way so that my window come to know that the mouse has clicked down......i.e in short i want to send the mouse events to my window from anywhere.
You need a global mouse hook [^]. See also this article [^]. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]modified on Wednesday, November 19, 2008 6:40 AM