[DllImport("oleacc.dll")]
public static extern IntPtr AccessibleObjectFromPoint(POINT pt, [Out, MarshalAs(UnmanagedType.Interface)] out IAccessible accObj, [Out] out object ChildID);
VB Signature:
<DllImport("oleacc.dll")> _
Shared Function AccessibleObjectFromPoint(ByVal pt As Point, <MarshalAs(UnmanagedType.Interface)> ByRef accObj As IAccessible, ByRef ChildID As Object) As IntPtr
End Function
This function retrieves the lowest-level accessible object in the object hierarchy at a given point in screen coordinates where (0, 0) is the upper left corner. If the element at the point is not an accessible object (that is, does not support IAccessible), then the function retrieves the IAccessible interface of the parent object. The parent object must provide information about the child element through the IAccessible interface.
Tips & Tricks:
Please add some!
Sample Code:
public static IAccessible GetAccessibleObject(POINT pt, out int ChildID)
{
object varChildID;
IAccessible accObj;
IntPtr success = AccessibleObjectFromPoint(pt, out accObj, out varChildID);
ChildID = (int)varChildID;
return accObj;
}
The AccessibleObjectFromPoint function retrieves the address of the IAccessible interface pointer for the object at a specified point on the screen.
7/8/2008 6:50:52 PM - -200.67.139.59
The IAccessible interface is the heart of Microsoft Active Accessibility. Applications implement this Component Object Model (COM) interface to represent their custom user interface elements, which can include their client area as accessible objects, if necessary. Client applications call IAccessible methods and properties to obtain information about an application's user interface and data.
3/16/2007 2:09:04 PM - -83.218.216.199
http://mwinapi.sourceforge.net/
3/31/2008 1:53:29 PM - -79.217.85.81
TODO - a short description
1/11/2008 6:01:52 AM - -207.46.55.29
The IAccessible interface is the heart of Microsoft Active Accessibility. Applications implement this Component Object Model (COM) interface to represent their custom user interface elements, which can include their client area as accessible objects, if necessary. Client applications call IAccessible methods and properties to obtain information about an application's user interface and data.
3/16/2007 2:09:04 PM - -83.218.216.199
The IAccessible interface is the heart of Microsoft Active Accessibility. Applications implement this Component Object Model (COM) interface to represent their custom user interface elements, which can include their client area as accessible objects, if necessary. Client applications call IAccessible methods and properties to obtain information about an application's user interface and data.
3/16/2007 2:09:04 PM - -83.218.216.199
The IAccessible interface is the heart of Microsoft Active Accessibility. Applications implement this Component Object Model (COM) interface to represent their custom user interface elements, which can include their client area as accessible objects, if necessary. Client applications call IAccessible methods and properties to obtain information about an application's user interface and data.
3/16/2007 2:09:04 PM - -83.218.216.199
The AccessibleObjectFromPoint function retrieves the address of the IAccessible interface pointer for the object at a specified point on the screen.
7/8/2008 6:50:52 PM - -200.67.139.59
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).