/// <summary> /// Get form handle at specified coordinates (x,y). /// </summary> /// <param name="point">Coordinates to search.</param> public static IntPtr Select(Point point) { // ReSharper disable once ArrangeStaticMemberQualifier IntPtr foundWindowHandle = ApiForm.WindowFromPoint(point); var parentLookup = new ApiOwnerFormLookup(); IntPtr formHandle = parentLookup.FindParent(foundWindowHandle); return(formHandle); }
protected override IntPtr GetParentElement(IntPtr child) { return(ApiOwnerFormLookup.GetParent(child)); }