Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Retrieves the element at the specified x and y coordinates.
Syntax
HRESULT elementFromPoint( long x, long y, IHTMLElement **elementHit );
Parameters
- x
- Long integer value specifying the horizontal coordinate, in window coordinates.
- y
- Long integer value specifying 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 value otherwise.
Remarks
Window coordinates are relative to the top-left corner of the window, which is at coordinates 0,0.
See Also
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.