The LM_Message class is used to notify a script when certain actions take place, like a button being pressed or when a menu selection is made.
The fWhat value of a message object indicates what the message is supposed to represent. For example, each button in a dialog should have been assigned a unique message value. When the dialog receives a message, this value tells it what to do.