Messages are used by the system and applications to communicate with a window. The system generates a message at each input event - for example, when the user types, moves the mouse, or clicks a control such as a scroll bar.
Window Detective can monitor messages sent to a window.