You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

It's very simple to capture various Windows events and use them to trigger events. All that is involved is qualifying the particular Windows message to capture, and then filling in the appropriate actions in a WINMSG event handler. The general outline is as follows:

The coding that follows illustrates how to capture mouse events at the window level and at the control level (for a button, for example).

  • No labels