Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NTWS & .CUR files
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00335316
Message ID:
00335337
Vues:
19
>>>I finally figured out why, under NT, I am unable to save a user's current CUR mousepointer, substitute my own for a control, and return the user's standard mousepointer, using API functions. NT, apparently *DOES NOT USE* .CURs. On my test machine, there are no CURs found in a complete drive search, though normal mouse pointers are in effect. ?? Is this normal? I have only one NT machine to work with, so I cannot compare with other NT machines easily. Can someone advise?
>>
>>Bruce,
>>
>>I don't know if this is much help, but Win2K supports the function LoadCursorFromFile() for both .CUR and .ANI files.
>
>That will help eventually...but we won't be going to Win2K for at least a year, probably. Early testing has uncovered many Win2K incompatiblities (we're still having some NT4 problems, in fact, like this one of mine, for example)...
>
>Alex & George - so I see what my problem is, the cursors are stored in a DLL, so the functions I need to store/restore a mousepointer (LoadCursorFromFile & SetSystemCursor) - apparently will not work with the DLL. Anyone have any other ideas for accomplishing this task in NT?
>
>What I need is something like GetSystemCursor, but no such thing exists...

Use LoadCursor(). You'll need to get the instance handle of the application (from GetClassLong() with the window handle and GCL_HMODULE -16).
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform