WINDOWS MESSAGES
WM_COMMAND - Sent as the result of a mouse click or key press.
- Carries as part of its structure, ID’s of Menu Items, Buttons or Dialog Box Controls selected by the mouse or keyboard.
Other messages can be sent to a window or dialog box by a call to a function inside the program telling the object to behave a certain way.