Fix WindowFromPoint P/Invoke

This commit is contained in:
baldurk
2014-10-06 17:40:30 +01:00
parent 56e7f0c754
commit 2cebc9866f
2 changed files with 17 additions and 2 deletions
+3 -1
View File
@@ -51,7 +51,9 @@ namespace renderdocui.Windows
short x = (short)((pos >> 0) & 0xffff);
short y = (short)((pos >> 16) & 0xffff);
IntPtr wnd = Win32PInvoke.WindowFromPoint((int)x, (int)y);
Win32PInvoke.POINT pt = new Win32PInvoke.POINT((int)x, (int)y);
IntPtr wnd = Win32PInvoke.WindowFromPoint(pt);
if (wnd != IntPtr.Zero && wnd != m.HWnd && Control.FromHandle(wnd) != null)
{