How can I get the pixel coordinates of the mouse cursor when it is clicked in an Window?
the aim here is to draw a pixel where the mouse is clicked on the window.
I'm using glut library and not MFC wizards pants..
Many thanks
Nit
Printable View
How can I get the pixel coordinates of the mouse cursor when it is clicked in an Window?
the aim here is to draw a pixel where the mouse is clicked on the window.
I'm using glut library and not MFC wizards pants..
Many thanks
Nit
Use the peek message API, and handle WM_MOUSEUP events. You can keep track of where the mouse cursor is on the window by storing mouse coordinates on WM_MOUSEMOVE events (this is how I handle mouse movement in my engine).
Z.
many thanks