Пример #1
0
 public virtual void ScreenToClient(ref Rectangle screenRect, out Rectangle clientRect)
 {
     clientRect = screenRect;
     User32Helpers.MapWindowPoints(IntPtr.Zero, this.Handle, ref clientRect);
     User32Helpers.InverseAdjustWindowRectEx(ref clientRect, this.GetStyles(),
                                             User32Methods.GetMenu(this.Handle) != IntPtr.Zero, this.GetExStyles());
 }