How to retrieve the position of the cursor?

Answer Posted / sujit singhania

Use the Win32 function GetCursorPos() for getting the
current (X,Y) position of the mouse cursor

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to Add accelerator characters to TTabsheets?

1387


What are the ways to close a modal form?

464


How to Avoid an Application Error when using EM_POSFROMCHAR ?

1411


How to Change font color on standard win controls?

1634


How to print an HTML document from inside of your application?

1263






How to Get the longfilename from a file?

1234


How to Migrate a project from Delphi 1 or 2 to Delphi 3 ?

1324


Can you drag and drop existing SQL structures directly onto a form?

1279


How to close your application using the Escape key?

1282


'General SQL Error : Connection does not exist' in threaded application . what does this indicates?

1573


How to Link an animated cursor to a resource file?

1308


"Application is not licensed to run this feature" . what does this error mean?

1546


How do abstract classes differ from interfaces?

483


How to Pass a function to a procedure or vice versa?

1412


How to Simulate a mouse move in code?

1393