mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
26 lines
558 B
C#
26 lines
558 B
C#
using System;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Artemis.UI.InputProviders
|
|
{
|
|
public sealed class SpongeWindow : NativeWindow
|
|
{
|
|
public SpongeWindow()
|
|
{
|
|
CreateHandle(new CreateParams());
|
|
}
|
|
|
|
public event EventHandler<Message> WndProcCalled;
|
|
|
|
protected override void WndProc(ref Message m)
|
|
{
|
|
OnWndProcCalled(m);
|
|
base.WndProc(ref m);
|
|
}
|
|
|
|
private void OnWndProcCalled(Message e)
|
|
{
|
|
WndProcCalled?.Invoke(this, e);
|
|
}
|
|
}
|
|
} |