public static RECT FromRectangle(Rectangle rc) { RECT rcx = new RECT(); rcx.Left = rc.Left; rcx.Top = rc.Top; rcx.Right = rc.Right; rcx.Bottom = rc.Bottom; return rcx; }
public static extern int SendMessage(IntPtr hWnd, int Msg, int wParam, ref RECT rect);
public static int SendMessage(IntPtr hWnd, int Msg, int wParam, ref RECT rect) { return -1; }