IHTMLDocument2::elementFromPointIHTMLDocument2::elementFromPoint*
*Contents  *Index  *Topic Contents
*Previous Topic: IHTMLDocument2::get_onselectstart
*Next Topic: IHTMLDocument2::get_parentWindow

IHTMLDocument2::elementFromPoint


HRESULT elementFromPoint(
    long x,
    long y,
    IHTMLElement **elementHit
);

Retrieves the element at the specified x and y coordinates.

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.

Window coordinates are relative to the top-left corner of the window, which is at coordinates 0,0.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.