public bool RedrawWindow(User32Rect rectUpdate, IntPtr hRgnUpdate, uint flags) { unsafe { return(User32APIs.RedrawWindow(Hwnd, &rectUpdate, hRgnUpdate, flags)); } }
public bool ScrollWindow(int xAmount, int yAmount, User32Rect rect, User32Rect clipRect) { unsafe { return(User32APIs.ScrollWindow(Hwnd, xAmount, yAmount, &rect, &clipRect)); } }
public bool InvalidateRect(User32Rect rect, bool bErase) { unsafe { return(User32APIs.InvalidateRect(Hwnd, &rect, bErase)); } }
public bool ValidateRect(User32Rect rect) { unsafe { return(User32APIs.ValidateRect(Hwnd, &rect)); } }
public User32Rect ScreenToClient(User32Rect rect) { User32Rect clientRect = rect; ScreenToClientInPlace(ref clientRect); return(clientRect); }
public User32Rect ClientToScreen(User32Rect rect) { User32Rect screenRect = rect; ClientToScreenInPlace(ref screenRect); return(screenRect); }
public int ScrollWindowEx(int dx, int dy, User32Rect rectScroll, User32Rect rectClip, IntPtr hRgnUpdate, ref User32Rect rectUpdate, uint uFlags) { unsafe { fixed(User32Rect *rectUpdatePtr = &rectUpdate) { return(User32APIs.ScrollWindowEx(Hwnd, dx, dy, &rectScroll, &rectClip, hRgnUpdate, rectUpdatePtr, uFlags)); } } }
public bool ScreenToClientInPlace(ref User32Rect rect) { unsafe { fixed(User32Rect *lpRect = &rect) { User32Point *lpPoint = (User32Point *)lpRect; if (!User32APIs.ScreenToClient(Hwnd, lpPoint)) { return(false); } return(User32APIs.ScreenToClient(Hwnd, lpPoint + 1)); } } }
public bool SetWindowPos(IntPtr hWndInsertAfter, User32Rect rect, uint nFlags) { return(SetWindowPos(hWndInsertAfter, rect.Left, rect.Top, rect.Right - rect.Left, rect.Bottom - rect.Top, nFlags)); }
public bool MoveWindow(User32Rect rect, bool bRepaint) { return(MoveWindow(rect.Left, rect.Top, rect.Right - rect.Left, rect.Bottom - rect.Top, bRepaint)); }