How To Change the Mouse Pointer to Any .CUR or .ANI File (137627)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 5.0
This article was previously published under Q137627 SUMMARY
The ability to change the mouse pointer to a cursor file other than one of
the default system cursors is available to Visual FoxPro through the
Windows API. This feature set is available under both Windows 95 and
Windows NT.
Visual FoxPro allows you to change the MousePointer property to specify
one of the pointer shape available in the default 12 system pointers, and
the DragIcon property allows you to set the pointer to any monochrome .cur
file. However, in some cases, you might want a colored pointer or an
animated pointer (.ani file). You can use the Windows API to do this.
The example in this article shows a method using LoadCursorFromFile() and
SetSystemCursor(). There are other functions that may be useful as well
such as CopyIcon(), ClipCursor(), GetCursor(), and so on. See the
Win32api.hlp file for more information on these functions.
REFERENCES
For more details, you can find a reference to these cursor functions in the
Win32Api.hlp Help file and in the Win32 SDK. The creation of cursor files
is supported by Imagedit.exe, and the Windows NT utility Aniedit.exe can be
used to create animated cursors.
Modification Type: | Minor | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbcode kbhowto KB137627 |
---|
|