示例#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;
            }
示例#2
0
 internal static extern bool GetWindowPlacement(IntPtr hWnd, ref WINDOWPLACEMENT lpwndpl);
示例#3
0
文件: PInvoke.cs 项目: zhouzu/Helper
 internal static extern bool GetWindowPlacement(IntPtr hWnd, ref WINDOWPLACEMENT lpwndpl);