Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Capture Windows Messages sent from a API to VFP. HELP!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00466118
Message ID:
00466523
Vues:
9
Hi Mike,

>>How do you define a handler for the undefined WM_ messages in straight VFP? Inquring minds and all that?
>
>Like you would with any other language, I suppose

In any other language you would install either a system hook or create a new Window Class. Both don't work in VFP as you need an address to a procedure in machine code. There's indeed one solution that could work in VFP, but it's not only slow, but also not reliable as it bases on polling the message queue using PeekMessage and eventually WaitMessage(). Since I've not tested this practically, I can't think of what kind of effect it might have on VFP itself since suspending the thread to wait for messages might interfere with VFP.

Christof
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform