Sends a message to an object and returns the answer.


int object_message(DIALOG *dialog, int msg, int c);
Sends a message to an object and returns the answer it has generated. Remember that the first parameter is the dialog object (not a whole array) that you wish to send the message to. For example, to make the second object in a dialog draw itself, you might write:
      object_message(&dialog[1], MSG_DRAW, 0);
The function will take care of scaring and unscaring the mouse if the message is MSG_DRAW.
Examples using this:

Related Discussions

The following threads each have code containing this keyword: Note: You can click on the numbers to jump directly to the posts that reference this page.

Related Projects

The following projects include source code containing this keyword: