I am trying to get when the left mouse button up is hapenning on a specific window. So I googled and find an interesting code snippet here.
That code snippet detects in which window the mouse click was done so i could modify a little to make it work. But the problem is that the hook using SetWindowsHookEx is not being set on a specific window, instead it listens for all mouse clicks in all windows (independently of the window) so i am interested in only set the hook in a specific window.
I have the window handle of the window in which i am interested in but now i need to know how to set the hook only in this window. How can i do this? I don't want to listen mouse events globally on all windows.
Thank you very much and sorry, i am completely new in using hooks.