Beispiel #1
0
            public static Rectangle GetWindowRectangle(IntPtr hWnd)
            {
                var placement = new WINDOWPLACEMENT();
                placement.length = Marshal.SizeOf(placement);
                PInvoke.GetWindowPlacement(hWnd, ref placement);

                return placement.rcNormalPosition;
            }
Beispiel #2
0
 internal static extern bool GetWindowPlacement(IntPtr hWnd, ref WINDOWPLACEMENT lpwndpl);
Beispiel #3
0
 internal static extern bool GetWindowPlacement(IntPtr hWnd, ref WINDOWPLACEMENT lpwndpl);