Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mouse Cursor
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Mouse Cursor
Miscellaneous
Thread ID:
00047287
Message ID:
00047287
Views:
77
Hi Vlad,
I have been experimenting with the mouse cursor set and reset code in the FAQ and am having a problem with it. I still must be missing something. I have been experimenting with changing just one mouse cursor ( the I-beam, 32513 ) in a grid to the normal arrow using LoadCursorFromFile() and SetSystemCursor() then changing it back to the I-Beam using CopyIcon() and SetSystemCursor() using the algorithm in the FAQ. I set the new cursor in the MouseMove() of one of the columns of the grid and reset it in the MouseMove() of a different column ( and also the Destroy of the form ). If I first move over the column that restores the I-Beam before moving over the column that changes it to an arrow, SetSystemCursor() reports it successfully changed it back to the I-beam. But if I then change the cursor to an arrow by moving over the appropriate column, the cursor changes to an arrow successfully, but then moving over the column to reset it, SetSystemCursor() reports it failed and the cursor remains an arrow. The code in the Destroy also fails. I tried storing the original I-beam cursor using CopyIcon() in both a form property array and a Public array with the same results. Copyicon() returned a valid value indicating success. OS is WinNT 4.0, SP3. Can you shed any light on where I am missing it?

Thanks,
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Next
Reply
Map
View

Click here to load this message in the networking platform