Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capture Windows Messages sent from a API to VFP. HELP!
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00466118
Message ID:
00466249
Views:
13
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform