LHAPI Messaging

The application communicates to its windows by sending them messages. Messages cover all aspects of window management: creation, destruction, changing the focus (the window the user is currently interacting with), keyboard input, and display. Usually, a message chain is initiated by the System Manager sending the application an event. This may be an activation event, or the user typing a key. This message is in turn passed to one or some windows. Those windows may in turn call other windows, or may subclass the message to allow other handlers to function on that same window.

For the most part, you don't need to worry about this messaging while writing LHAPI window handlers; just handle the messages you need to. You cannot do this, however, in a vacuum. When writing a window handler (especially one that subclasses an existing class' behavior), keep these things in mind: