Retrieves the element at the specified x and y coordinates.
Syntax
HRESULT elementFromPoint( long x, long y, IHTMLElement **elementHit );
Parameters
- x
- Long integer value that specifies the horizontal coordinate, in window coordinates.
- y
- Long integer value that specifies the vertical coordinate, in window coordinates.
- elementHit
- Address of a pointer to the IHTMLElement interface for the element at the given coordinates.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
Window coordinates are relative to the top-left corner of the window, which is at coordinates 0,0.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0