예제 #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);