Ejemplo n.º 1
0
		public static extern bool GetWindowRect(IntPtr hWnd, out RECT WindowRECT);
Ejemplo n.º 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);
		}
Ejemplo n.º 3
0
		public static extern bool ClipCursor(ref RECT lpRect);