Class WinProcListener
This is a Listener for WinProc messages
Inheritance
System.Object
WinProcListener
Namespace: Dapplo.Windows.Dpi
Assembly: Dapplo.Windows.Dpi.dll
Syntax
public sealed class WinProcListener : NativeWindow, IDisposable
Constructors
| Improve this Doc View SourceWinProcListener(Control)
Constructor for a window listener
Declaration
public WinProcListener(Control parent)
Parameters
Type | Name | Description |
---|---|---|
Control | parent | Control to listen to |
Methods
| Improve this Doc View SourceAddHook(HwndSourceHook)
Adds an event handler
Declaration
public void AddHook(HwndSourceHook hook)
Parameters
Type | Name | Description |
---|---|---|
HwndSourceHook | hook | HwndSourceHook |
Dispose()
Declaration
public void Dispose()
RemoveHook(HwndSourceHook)
Removes the event handlers that were added by AddHook
Declaration
public void RemoveHook(HwndSourceHook hook)
Parameters
Type | Name | Description |
---|---|---|
HwndSourceHook | hook | HwndSourceHook, The event handler to remove. |
WndProc(ref Message)
Declaration
protected override void WndProc(ref Message message)
Parameters
Type | Name | Description |
---|---|---|
Message | message |