Example #1
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));
                }
            }
        }
Example #2
0
 public static extern int MapWindowPoints(IntPtr hwnd, IntPtr hWndTo, User32Point *lpPoint, uint nCount);
Example #3
0
 public static extern bool ScreenToClient(IntPtr hwnd, User32Point *lpPoint);
Example #4
0
 public static extern bool ClientToScreen(IntPtr hwnd, User32Point *lpPoint);