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:
00466802
Vues:
11
>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.

See my reply to Ed. I believe it's possible that a loop written in VFP will snag undefined messages (haven't test thoroughly). If this is true, a handler wouldn't be needed, at least as I understand the question.

>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 have. I seem to recall something to do with Task Manager/End Process as the final solution. It's been a while since I've played with it, but what I remember is that VFP was not a happy EXE when trying that. Of course, VFP isn't terribly pleased when you try to intercept Windows messages, either.
Mike Stewart
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform