public static extern bool GetWindowRect(IntPtr hWnd, ref RECT lpRect);
 public bool Equals(RECT rect)
 {
     return rect.Left == Left && rect.Top == Top && rect.Bottom == Bottom && rect.Right == Right;
 }