Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capture Windows Messages sent from a API to VFP. HELP!
Message
From
22/01/2001 13:14:45
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00466118
Message ID:
00466776
Views:
6
>>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: you'd have to know what the messages are ahead of time. I guess I'm confused (easily done) as to how this would be an issue with VFP vs. C++. I mean, if I get something like WM_MYSPECIALMESSAGE, if it isn't documented what that integer is and I haven't accounted for it, it's just going to fall through the message loop in any language, right?

And how do you add VFP code to the loop to intercept a message that isn't currently handled by VFP's Event loop monitor? You need to add a handler to be dispatched, and without the ability to specify an entrypoint for dispatch on message receipt, you're kinda stuck - sort of like you were with VB4, before AddressOf() was a reality.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform