예제 #1
0
		public static extern bool GetWindowRect(IntPtr hWnd, out RECT WindowRECT);
예제 #2
0
		public static Rectangle GetWindowRectangle(IntPtr hWnd)
		{
			RECT rect = new RECT();
			GetWindowRect(hWnd, out rect);
			return new Rectangle(rect.Left, rect.Top, rect.Right - rect.Left, rect.Bottom - rect.Top);
		}
예제 #3
0
		public static extern bool ClipCursor(ref RECT lpRect);