private static bool IsHookingArea() { if (HookElement != null && !HookArea.IsEmpty) { var point = HookElement.PointFromScreen(new Point(_mouseParam.pt.x, _mouseParam.pt.y)); var contains = HookArea.Contains(point); return(contains); } return(true); }
//////////////////////////////////////////////////////////////////////////////// Private #region 후킹 영역 여부 구하기 - IsHookingArea() /// <summary> /// 후킹 영역 여부 구하기 /// </summary> /// <returns>후킹 영역 여부</returns> private static bool IsHookingArea() { if (HookElement != null && !HookArea.IsEmpty) { Point point = HookElement.PointFromScreen ( new Point ( _mouseHookStructure.Location.X, _mouseHookStructure.Location.Y) ); bool contains = HookArea.Contains(point); return(contains); } return(true); }