>>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.
How do you define a handler for the undefined WM_ messages in straight VFP? Inquring minds and all that?