Esempio n. 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)));
        }
Esempio n. 2
0
 public static extern bool GetWindowRect(IntPtr hwnd, ref U32Rect rectangle);