Beispiel #1
0
        /// <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);
        }
Beispiel #2
0
 protected override IntPtr GetParentElement(IntPtr child)
 {
     return(ApiOwnerFormLookup.GetParent(child));
 }