Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cursor position relative to the current form

Status
Not open for further replies.

Vince

Programmer
May 10, 2000
71
GB
I am seeking a way to find the position of the mouse at the start of a drag operation and the end of the drag opertion. <br><br>I have tried using the mousedown and the dragover events but they do not return an accurate value. <br>I have also tried the GetCursorPos API call and this provides accurate co ordinates the problem being that they are relative to the screen resolution not the size and position of the form or its controls.&nbsp;&nbsp;<br><br>I need help on this badly <br><br>Thanks in advance <br><br>:) <br><br>
 
There's an API function ScreenToClient (or something very similar) that should give you what you want. <p>nick bulka<br><a href=mailto: > </a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top