How to Retrieve Mouse Cursor Coordinates in Visual Basic (114777)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
This article was previously published under Q114777 SUMMARY
Applications such as Paint programs use functions from the Windows API
(Application Programming Interface) to retrieve Mouse coordinates that
in turn help the user design and paint their picture. This article shows
by example how to use the Windows API GetCursorPos() function to retrieve
the mouse coordinates from Visual Basic.
REFERENCES
"Programming Windows: the Microsoft Guide to Writing Applications for
Windows 3," Charles Petzold, Microsoft Press, 1990
"Microsoft Windows Software Development Kit" Reference Manuals and
on-line help
WINSDK.HLP file shipped with Microsoft Windows 3.0 Software
Development Kit
"Visual Basic Programmers Guide to the Windows API", Daniel Appleman,
Ziff Davis Press, 1993
Modification Type: | Major | Last Reviewed: | 10/29/2003 |
---|
Keywords: | KB114777 |
---|
|