Exemple #1
0
 public bool RedrawWindow(User32Rect rectUpdate, IntPtr hRgnUpdate, uint flags)
 {
     unsafe
     {
         return(User32APIs.RedrawWindow(Hwnd, &rectUpdate, hRgnUpdate, flags));
     }
 }
Exemple #2
0
 public bool ScrollWindow(int xAmount, int yAmount, User32Rect rect, User32Rect clipRect)
 {
     unsafe
     {
         return(User32APIs.ScrollWindow(Hwnd, xAmount, yAmount, &rect, &clipRect));
     }
 }
Exemple #3
0
 public bool InvalidateRect(User32Rect rect, bool bErase)
 {
     unsafe
     {
         return(User32APIs.InvalidateRect(Hwnd, &rect, bErase));
     }
 }
Exemple #4
0
 public bool ValidateRect(User32Rect rect)
 {
     unsafe
     {
         return(User32APIs.ValidateRect(Hwnd, &rect));
     }
 }
Exemple #5
0
        public User32Rect ScreenToClient(User32Rect rect)
        {
            User32Rect clientRect = rect;

            ScreenToClientInPlace(ref clientRect);
            return(clientRect);
        }
Exemple #6
0
        public User32Rect ClientToScreen(User32Rect rect)
        {
            User32Rect screenRect = rect;

            ClientToScreenInPlace(ref screenRect);
            return(screenRect);
        }
Exemple #7
0
 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));
         }
     }
 }
Exemple #8
0
        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));
                }
            }
        }
Exemple #9
0
 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));
 }
Exemple #10
0
 public bool MoveWindow(User32Rect rect, bool bRepaint)
 {
     return(MoveWindow(rect.Left, rect.Top, rect.Right - rect.Left, rect.Bottom - rect.Top, bRepaint));
 }