Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mouse pointer change ???
Message
From
31/08/1997 06:57:34
 
 
To
30/08/1997 17:49:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00041692
Message ID:
00047849
Views:
87
Hi Vlad!

Thanks for your answer! You are right, it hasnot much sense, as LoadCursor() works now for standard cursors. As it sounds, it could be a big problem in other languages like C++. Is it documented somewhere?

TIA

BB


>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...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform