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