Beispiel #1
0
 // ReSharper disable once InconsistentNaming
 public static extern bool SetWindowPos(
     IntPtr hWnd,
     IntPtr hWndInsertAfter,
     int X,
     int Y,
     int cx,
     int cy,
     WindowPositionFlags uFlags);
Beispiel #2
0
 internal static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int top, int left, int width, int height, WindowPositionFlags flags);
Beispiel #3
0
 public static extern bool SetWindowPos(Hwnd hwnd, Hwnd hWndInsertAfter, int x, int y, int cx, int cy,
                                        WindowPositionFlags flags);
 public bool SetPosition(ref Rectangle rect, WindowPositionFlags flags)
 {
     return(this.SetPosition(rect.Left, rect.Top, rect.Width, rect.Height, flags));
 }
Beispiel #5
0
 internal static extern IntPtr SetWindowPos(IntPtr hWnd, int hWndInsertAfter, int x, int y, int cx, int cy, WindowPositionFlags wFlags);
 public bool SetPosition(Rectangle rect, WindowPositionFlags flags)
 {
     return(this.SetPosition(ref rect, flags));
 }
 public bool SetPosition(IntPtr hWndInsertAfter, int x, int y, int width, int height, WindowPositionFlags flags)
 {
     return(User32Methods.SetWindowPos(this.Handle, hWndInsertAfter, x, y, width, height, flags));
 }
 public bool SetPosition(HwndZOrder order, int x, int y, int width, int height, WindowPositionFlags flags)
 {
     return(User32Helpers.SetWindowPos(this.Handle, order, x, y, width, height, flags));
 }
 public bool SetPosition(int x, int y, int width, int height, WindowPositionFlags flags)
 {
     return(User32Methods.SetWindowPos(this.Handle, IntPtr.Zero, x, y, width, height, flags));
 }
Beispiel #10
0
 public static bool SetWindowPos(IntPtr hwnd, HwndZOrder order, int x, int y, int cx, int cy,
                                 WindowPositionFlags flags)
 {
     return(User32Methods.SetWindowPos(hwnd, new IntPtr((int)order), x, y, cx, cy, flags));
 }