internal static extern bool ScreenToClient(IntPtr hWnd, ref POINT lpPoint);
/// <summary> /// Aktualizuje pozici myši, zda se nachází v okně nebo ne. /// </summary> /// <param name="point">Pozice myši.</param> private void UpdateIsWithinDisplayArea(POINT point) { IsWithinDisplayArea = (point.X >= 0 && point.Y >= 0 && point.X <= window.Window.ClientBounds.Width && point.Y <= window.Window.ClientBounds.Height); }
internal static extern bool GetCursorPos(out POINT lpPoint);