Binding to Windows Events for Fox windows
In a prior blog I described a demo I gave at Las Vegas Devcon that showed how to bind to Windows Events to respond to Windows Shell notifications.
Another demo I gave at Devcon was a simple program that bound to Windows Events to trap for window activation, deactivation, creation, etc. It showed a treeview listing all the currently active windows.
As the user opens, closes, or activates various windows, the treeview is automatically updated by responding to these events.
These demos require a new feature for BINDEVENTS() in VFP9 that allows you to run user code in response to Windows Events.
A customer asked for the source code for that demo: it’s shipped as a solution sample.
Start VFP9, Tools->Task Pane. Choose Solution Samples, New in VFP9, “Binding to windows Message Events”, “Fox Windows”
47234