IWin32WindowExtensionsSendMessage(IWin32Window, Int32, IntPtr, IntPtr) Method
Sends the specified message to the specified window.
The SendMessage function calls the window procedure for the specified window
and does not return until the window procedure has processed the message.
Namespace: DevCase.Extensions.IWin32WindowExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static IntPtr SendMessage(
this IWin32Window window,
int msg,
IntPtr wParam,
IntPtr lParam
)
<ExtensionAttribute>
Public Shared Function SendMessage (
window As IWin32Window,
msg As Integer,
wParam As IntPtr,
lParam As IntPtr
) As IntPtr
Dim window As IWin32Window
Dim msg As Integer
Dim wParam As IntPtr
Dim lParam As IntPtr
Dim returnValue As IntPtr
returnValue = window.SendMessage(msg,
wParam, lParam)
public:
[ExtensionAttribute]
static IntPtr SendMessage(
IWin32Window^ window,
int msg,
IntPtr wParam,
IntPtr lParam
)
[<ExtensionAttribute>]
static member SendMessage :
window : IWin32Window *
msg : int *
wParam : IntPtr *
lParam : IntPtr -> IntPtr
No code example is currently available or this language may not be supported.
- window IWin32Window
-
The source window.
- msg Int32
-
The message to be sent.
- wParam IntPtr
-
Additional message-specific information.
- lParam IntPtr
-
Additional message-specific information.
IntPtr
The return value specifies the result of the message processing; it depends on the message sent.
In Visual Basic and C#, you can call this method as an instance method on any object of type
IWin32Window. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).