pascalabcnet/WeifenLuo/WinFormsUI/Docking/Helpers/Win32Helper.cs

20 lines
372 B
C#
Raw Permalink Normal View History

2015-05-14 22:35:07 +03:00
using System;
using System.Drawing;
using System.Windows.Forms;
namespace WeifenLuo.WinFormsUI.Docking
{
internal static class Win32Helper
{
public static Control ControlAtPoint(Point pt)
{
return Control.FromChildHandle(NativeMethods.WindowFromPoint(pt));
}
public static uint MakeLong(int low, int high)
{
return (uint)((high << 16) + low);
}
}
}