Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Capture Windows Messages sent from a API to VFP. HELP!
Message
 
 
À
20/01/2001 03:58:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00466118
Message ID:
00466249
Vues:
12
>You're going to need to write code in either VB or C to hook the Windows event loop for these two messages as a part of an ActiveX control, and have them generate events that you can then hook with VFP code using VFPCOM, or write an FLL to tie C code directly to VFP.

Actually, it can be done with native VFP code, but it's as slow as molasses in West Haven this time of year. You can write a typical message loop, then punt the messages you don't want to VFP's queue. However, due to performance, it's not of much practical use if much user interaction goes on. I would probably go with Ed's suggestion of tying in with an FLL.

Gary, if you want to go the FLL route, dig around the old threads. I posted code for doing this a while back (sorry, I don't remember when). I think I posted the VFP code, too.
Mike Stewart
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform