Task.SendWindowMessage Method

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

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Sub SendWindowMessage ( _
    Message As Integer, _
    wParam As Integer, _
    lParam As Integer _
)
'Usage
Dim instance As Task
Dim Message As Integer
Dim wParam As Integer
Dim lParam As Integer

instance.SendWindowMessage(Message, wParam, _
    lParam)
void SendWindowMessage(
    int Message,
    int wParam,
    int lParam
)

Parameters

  • Message
    Type: System.Int32
    Required Integer. A hexadecimal 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 hexadecimal value with &h).
  • wParam
    Type: System.Int32
    Required Integer. 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).
  • lParam
    Type: System.Int32
    Required Integer. 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).

See Also

Reference

Task Interface

Task Members

Microsoft.Office.Interop.Word Namespace