Class WindowMessageMonitor
The message monitor allows you to monitor all WM_MESSAGE events for a given window.
Inheritance
System.Object
WindowMessageMonitor
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: WinUIEx.Messaging
Assembly: WinUIEx.dll
Syntax
public sealed class WindowMessageMonitor : IDisposable
Constructors
| Improve this Doc View SourceWindowMessageMonitor(UI.Xaml.Window)
Initialize a new instance of the WindowMessageMonitor class.
Declaration
public WindowMessageMonitor(UI.Xaml.Window window)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.UI.Xaml.Window | window | The window to listen to messages for |
WindowMessageMonitor(IntPtr)
Initialize a new instance of the WindowMessageMonitor class.
Declaration
public WindowMessageMonitor(IntPtr hwnd)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | hwnd | The window handle to listen to messages for |
Methods
| Improve this Doc View SourceDispose()
Disposes this instance
Declaration
public void Dispose()
Finalize()
Finalizer
Declaration
protected void Finalize()
Events
| Improve this Doc View SourceWindowMessageReceived
Event raised when a windows message is received.
Declaration
public event EventHandler<WindowMessageEventArgs> WindowMessageReceived
Event Type
Type | Description |
---|---|
System.EventHandler<WindowMessageEventArgs> |
Implements
System.IDisposable