Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NT API problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00252686
Message ID:
00253289
Vues:
40
>I have a specific question, though: In your SetCursor function, how to you obtain the parameter 'tnCursorID', so you can automatically pick up the current cursor from any object?

This is pretty easy. SYS(1270) returns the current object under mouse. The MousePointer property of the object gives you the current mouse cursor in VFP's style, but this is very easy to convert into Windows mouse cursor IDs. Am I right?

>Or is that even possible? I was looking for a function like
>GetSystemCursor()

So, it is possible. I don't know how it can be done at system level, but it can be done in VFP when the mouse is over an object.

But I want to clarify things a little bit: my code sets and resets the mouse cursor at system level. There are ~14 standard mouse cursors in Windows. These 14 cursors should be seen more like 14 possible states for the mouse cursor, then like 14 different images. The SetSystemCursor() function deals with setting images for these 14 states. My code (in that FAQ) sets and resets the images for these 14 states. This means that if you set a new image for the Wait cursor for ex, this image will show whenever an app sets the cursor to OCR_WAIT. So, you're changing the cursor icons for all apps, not only for your app.

Vlad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform