samedi 28 mars 2015

How to detect mouse click in C++/CLI Panel?


Given a panel that is inside a C++/CLI form in visual studio, how do I actually detect the clicking of mouse and detects the output(x,y) based on the mouse click?


I've searched many other websites but none of them actually shows the guide to detect mouse coordinates for C++/CLI, can anyone guide me please? Thanks.


Update: I've already explored the options of GetCursorPos but it however, did not enable me to click around the panel and generating out the coordinates, thus wondering what should be the correct way about going it such that everytime I click, it will show the coordinates.




Aucun commentaire:

Enregistrer un commentaire