Ejemplo n.º 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;
            }
Ejemplo n.º 2
0
 internal static extern bool GetWindowPlacement(IntPtr hWnd, ref WINDOWPLACEMENT lpwndpl);
Ejemplo n.º 3
0
 internal static extern bool GetWindowPlacement(IntPtr hWnd, ref WINDOWPLACEMENT lpwndpl);