Capturing mouse coordinates
-
hello can u please suggest some code for capturing the mouse coordinates on clicking? :confused:
-
hello can u please suggest some code for capturing the mouse coordinates on clicking? :confused:
Look up
onmousemove
in MSDN.
I feel like I'm diagonally parked in a parallel universe Jerry Davis http://www.astad.org
http://www.jvf.co.uk -
hello can u please suggest some code for capturing the mouse coordinates on clicking? :confused:
From MSDN... afx_msg void OnLButtonDown( UINT nFlags, CPoint point ); ... point Specifies the x- and y-coordinate of the cursor. These coordinates are always relative to the upper-left corner of the window. To get the coordinates into screen coordinates, use CWnd::ClientToScreen (...). Iain.
-
hello can u please suggest some code for capturing the mouse coordinates on clicking? :confused:
Hi, GetCursorPos function retrieves the cursor's position, in screen coordinates. Just use it in your click handler. BOOL GetCursorPos( LPPOINT lpPoint // cursor position ); Vitali http://www.creative-case.com