Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning User's Mouse Pointer (vfp5)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00043368
Message ID:
00043537
Vues:
30
>Hi Bruce,
> Would you mind passing along a sample of the API code you're using to do that? I haven't had a lot of success with SetSystemCursor().
>
Okay, let's see what I can do to explain...let's suppose 2 column grid, where column1 uses link/hand but column2 does not.

In form init:
declare integer LoadCursorFromFile in win32api as NewCur string
declare short SetSystemCursor in win32api integer, integer

In column1 MouseMove:
nCurHndl=NewCur("c:\vfp\samples\graphics\cursors\h_point.cur")
nChangOK=SetSystemCursor(nCurHndl,32513)

In column2 MouseMove:
nCurHndl=NewCur("c:\windows\cursors\beam_m.cur")
nChangOK=SetSystemCursor(nCurHndl,32513)

That's the essence of it...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform