my program should wait for a click, get the coordinates,
wait for one last click, get the coordinates, and draw a
box between these coordinates. i know everything but
how to get the mouse coordianates (X, Y), any idea?
Printable View
my program should wait for a click, get the coordinates,
wait for one last click, get the coordinates, and draw a
box between these coordinates. i know everything but
how to get the mouse coordianates (X, Y), any idea?
The WM_LBUTTONDOWN will get you the client coordinates for a left button mouse click.
Thanks!