示例#1
0
        private static Rect GetWindowRect(IntPtr Ptr)
        {
            U32Rect R = new U32Rect();

            _ = Win32Calls.GetWindowRect(Ptr, ref R);

            return(new Rect(new System.Windows.Point(R.Left, R.Top), new System.Windows.Point(R.Right, R.Bottom)));
        }
示例#2
0
 public static extern bool GetWindowRect(IntPtr hwnd, ref U32Rect rectangle);