Ejemplo n.º 1
0
 public Rectangle(RECT rect)
 {
     Left = rect.Left;
     Right = rect.Right;
     Top = rect.Top;
     Bottom = rect.Bottom;
 }
Ejemplo n.º 2
0
 private static RECT GetRect()
 {
     RECT rect = new RECT();
     rect.Left = LEFT;
     rect.Right = RIGHT;
     rect.Top = TOP;
     rect.Bottom = BOTTOM;
     return rect;
 }
Ejemplo n.º 3
0
 internal static extern bool GetWindowRect(IntPtr windowPtr, RECT rect);
Ejemplo n.º 4
0
 private void SetLocation(IntPtr windowPtr, IntPtr windowInsertAfter, RECT rect, uint positioningFlags)
 {
     WinApi.SetWindowPos(windowPtr, windowInsertAfter, rect.Left, rect.Top, rect.Right - rect.Left, rect.Bottom - rect.Top, positioningFlags);
 }
Ejemplo n.º 5
0
 public void SetLocationUnchangedOrder(IntPtr windowPtr, RECT rect)
 {
     SetLocation(windowPtr, IntPtr.Zero, rect, (uint) (PositioningFlags.SWP_NOZORDER));
 }
Ejemplo n.º 6
0
 public RECT GetLocation(IntPtr windowPtr)
 {
     RECT rect = new RECT();
     WinApi.GetWindowRect(windowPtr, rect);
     return rect;
 }