Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capture Windows Messages sent from a API to VFP. HELP!
Message
From
20/01/2001 04:19:02
 
 
To
20/01/2001 02:16:45
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00466118
Message ID:
00466129
Views:
15
You don't have to hook the program to do this (although its an option) use Spy++ that comes with the platform SDK. To do this just select Spy from the main menu then the messages option and drag the finder tool (the icon) over the window to monitor. You can even filter the types of messages to include.

If however you want to physically plumb into the message queue you can do one of two things. First you can subclass an applications message queue or window procedure, secondly you define a system wide message hook. Both of these options are relatively easy to do and examples can be found on MSDN. I actually use the first option in my VFPEvents.fll to monitor the message queue and perform MessageBox manipulation, however its in C++.

HTH
Neil
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform