示例#1
0
 internal static extern bool ScreenToClient(IntPtr hWnd, ref POINT lpPoint);
示例#2
0
 /// <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);
 }
示例#3
0
 internal static extern bool GetCursorPos(out POINT lpPoint);