Types of Messages
The Win32 API predefines a constant for each Windows message. These constants are the values kept in the message field of the TMsg record. All these constants are defined in Delphi's Messages unit; most are also described in the online help. Notice that each of these constants begins with the letters WM, which stand for Windows Message. Table 3.1 lists some of the common Windows messages, along with their meanings and values.
Message Identifier | Value | Tells a Window That… |
---|---|---|
wm_Activate | $00l6 | It's being activated or deactivated. |
wm_Char | $0102 | wm_KeyDown and wm_KeyUp messages have been sent for one key. |
wm_Close | $0010 | It should terminate. |
wm_KeyDown | $0100 | A keyboard key is being pressed. |
wm_KeyUp ... |
Get Borland® Delphi™ 6 Developer's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.