Show / Hide Table of Contents

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 Source

WindowMessageMonitor(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

| Improve this Doc View Source

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 Source

Dispose()

Disposes this instance

Declaration
public void Dispose()
| Improve this Doc View Source

Finalize()

Finalizer

Declaration
protected void Finalize()

Events

| Improve this Doc View Source

WindowMessageReceived

Event raised when a windows message is received.

Declaration
public event EventHandler<WindowMessageEventArgs> WindowMessageReceived
Event Type
Type Description
System.EventHandler<WindowMessageEventArgs>

Implements

System.IDisposable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX