Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hey guys, i have problem with mouse handling functions in C and C++.
for example i have a note in Specified position (for example X=10,Y=10) and i wanna when mouse Pointer go in that positin and click on it (left click) , the color of note change.
i use Visual studio 2012 and i research in libries of that baut i dont found any thing. :||
Posted
Comments
[no name] 26-Jun-14 12:07pm    
So why are you not able to use GetCursorPos? http://msdn.microsoft.com/en-us/library/windows/desktop/ms648390(v=vs.85).aspx

1 solution

Read the MSDN. In the lParam are the coordinates, so you can handle it in the message handler.

Tip: Use PostMessage with a user defined message to handler your use case.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900