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:
00335499
Vues:
15
>>I just tried the following and it seems to work. It should be enough to get you started
* Declares
>>* API Function declarations
>>DECLARE INTEGER LoadCursor IN Win32API;
>>  INTEGER hInstance, INTEGER hCursor
>>DECLARE INTEGER SetCursor IN Win32API;
>>  INTEGER hCursor
>>DECLARE Sleep IN Win32API;
>>  INTEGER dwMilliseconds
>>lnHCursor = LoadCursor(0, IDC_IBEAM)
>>* Get the old cursor
>>lnoldCursor = SetCursor(lnHCursor)
>>= Sleep(5000) && Wait 5 seconds
>>* Restore old cursor
>>lnoldCursor = SetCursor(lnoldCursor)
Let me know if this does it.
>
>Thanks George, that works on NT for the test situation (a), where I'm just changing an Ibeam to arrow and back - not sure if it works for situation (b) where I have a custom CUR yet, that's the next stage.

Nope! At least I haven't been able to make it display a CUR (or ANI file, P. Kane take note). Further I don't have a clue as to why. I may play around with it some more, but I'm not terribly hopeful. It maybe a registry thing, or maybe something with VFP, but I get nothing, nada, zero.

>While I'm working on that, can anyone tell me why NT has no "restore defaults" for mousepointers? The button in Control Panel/Mouse is always disabled, and there are no CURs that come with NT to browse for to restore. I could cheat and load some from Win9x on to NT, I guess, but that doesn't seem right. I have to logout/back-in each time I need to reset the mouse. There must be an easier way?

Bruce, I've never used NT to any extent, so I'm the wrong guy here. Maybe Ed Rauh knows and will jump it.
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