SendWindowMessage Method

See Also         Example         Applies To

Sends a Windows message and its associated parameters to the specified task.

Syntax

expression.SendWindowMessage(Message, wParam, IParam)

expression   Required. An expression that returns a Task object.

Message   Required Long. A hexidecimal number that corresponds to the message you want to send. If you have the Microsoft Platform Software Development Kit, you can look up the name of the message in the header files (Winuser.h, for example) to find the associated hexadecimal number (precede the hexidecimal value with &h).

wParam, lParam   Required Long. Parameters appropriate for the message you’re sending. For information about what these values represent, see the reference topic for that message in the documentation included with the Microsoft Platform Software Development Kit. To retrieve the appropriate values, you may need to use the Spy utility (which comes with the kit).