mirror of
https://github.com/ckaczor/wpf-notifyicon.git
synced 2026-01-30 17:26:25 -05:00
CHG Getting physical cursor position on Vista and above.
FIX Calculating device coordinates into logical ones used by WPF. Needed in case of custom DPI settings. CHG Renamed timer to be more explicit. NTFY-22 git-svn-id: https://svn.evolvesoftware.ch/repos/evolve.net/WPF/NotifyIcon@194 9f600761-6f11-4665-b6dc-0185e9171623
This commit is contained in:
@@ -79,8 +79,10 @@ namespace Hardcodet.Wpf.TaskbarNotification.Interop
|
||||
/// <summary>
|
||||
/// Gets the screen coordinates of the current mouse position.
|
||||
/// </summary>
|
||||
/// <param name="lpPoint"></param>
|
||||
/// <returns></returns>
|
||||
[DllImport("USER32.DLL", SetLastError = true)]
|
||||
public static extern bool GetPhysicalCursorPos(ref Point lpPoint);
|
||||
|
||||
|
||||
[DllImport("USER32.DLL", SetLastError = true)]
|
||||
public static extern bool GetCursorPos(ref Point lpPoint);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user