Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mouse pointer change ???
Message
De
30/08/1997 17:49:33
 
 
À
30/08/1997 16:44:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00041692
Message ID:
00047812
Vues:
85
No. LoadCursor returns a handle to the current cursor, not to the standard one (on Win NT). After that if you use this handle (with SetSystemCursor) to change another cursor, these 2 cursors will be switched. It doesn't make to much sense, isn't it? Example:

*-- This returns a handle to the current arrow cursor, not the standard one.
* This might be changed, so, there's no way to have the needed handle.
lnHandleToArrow = LoadCursor( 0, 32512)
*-- This should change the IBeam cursor to Arrow,
* but it will switch the 2 cursors.
lnError = SetSystemCursor( lnHandleToArrow, 32513)

This is why, on Windows NT, you must work with copies of the cursors.

Vlad

>Hi Paul!
>
>I downloaded your mouse change routins. Thanks for these!
>
>Is this 127 error code the bug for which you refer in your FAQ Article "How to change and how to reset..."?
>
>BB
>
>
>>Win32API error code 127 is "The specified procedure could not be found." This message is kinda generic error message. :) I mean: it comes from many causes, usually something intern to Win32API. So, don't start to look for a missing procedure.
>>
>>How did you declared SETCURSOR and LOADCURSOR functions?
>>
>>Vlad
>>
>>>Hi guys,
>>>
>>>I try to replace the arrow cursor with the wait cursor in my application when processus was long but when i use the command " thisform.setall('mousepointer',11) " some object (text box) in grid not change. Do you have an idea ?
>>>I also try with win32api fonction like = SetCursor(LoadCursor(0,'IDC_WAIT')) but it's not work i think that the LoadCursor return a error 127 but i don't have idea what it's mean
>>>
>>>I will very apreciate your help
>>>Rocky Boy...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform