refactoring for the next stage
This commit is contained in:
@@ -6,8 +6,8 @@ namespace NotificationFlyout.Wpf.UI.Helpers
|
||||
{
|
||||
public static POINT GetPhysicalCursorPos()
|
||||
{
|
||||
PInvoke.GetPhysicalCursorPos(out POINT point);
|
||||
PInvoke.GetPhysicalCursorPos(out var point);
|
||||
return point;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -27,7 +27,6 @@ namespace NotificationFlyout.Wpf.UI.Helpers
|
||||
CreateNotificationIcon();
|
||||
}
|
||||
|
||||
|
||||
~NotificationIconHelper()
|
||||
{
|
||||
Dispose(false);
|
||||
@@ -147,9 +146,11 @@ namespace NotificationFlyout.Wpf.UI.Helpers
|
||||
case (uint)WndProcMessages.WM_LBUTTONUP:
|
||||
InvokeIconInvoked(MouseButton.Left);
|
||||
break;
|
||||
|
||||
case (uint)WndProcMessages.WM_MBUTTONUP:
|
||||
InvokeIconInvoked(MouseButton.Middle);
|
||||
break;
|
||||
|
||||
case (uint)WndProcMessages.WM_RBUTTONUP:
|
||||
InvokeIconInvoked(MouseButton.Right);
|
||||
break;
|
||||
|
||||
@@ -41,4 +41,4 @@ namespace NotificationFlyout.Wpf.UI.Helpers
|
||||
[DllImport("user32.dll", CharSet = CharSet.Auto)]
|
||||
private static extern bool SystemParametersInfo(int nAction, int nParam, ref RECT rc, int nUpdate);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -74,4 +74,4 @@ namespace NotificationFlyout.Wpf.UI.Helpers
|
||||
return DefWindowProcW(hwnd, (uint)msg, wParam, (lParam));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,4 +5,4 @@
|
||||
Dark,
|
||||
Light,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -115,4 +115,4 @@ namespace NotificationFlyout.Wpf.UI.Helpers
|
||||
public int lParam;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
namespace NotificationFlyout.Wpf.UI
|
||||
{
|
||||
|
||||
public enum TaskbarPosition
|
||||
{
|
||||
Left = 0,
|
||||
|
||||
@@ -13,6 +13,5 @@ namespace NotificationFlyout.Wpf.UI.Helpers
|
||||
public SystemTheme Theme { get; private set; }
|
||||
|
||||
public bool IsColorPrevalence { get; private set; }
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
using System;
|
||||
using Microsoft.Windows.Sdk;
|
||||
using Microsoft.Windows.Sdk;
|
||||
using System;
|
||||
|
||||
namespace NotificationFlyout.Wpf.UI.Helpers
|
||||
{
|
||||
@@ -15,4 +15,4 @@ namespace NotificationFlyout.Wpf.UI.Helpers
|
||||
return PInvoke.GetDpiForWindow((HWND)handle);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user