componentFromPoint method
[This documentation is preliminary and is subject to change.]
Returns the component located at the specified coordinates via certain events.
Syntax
BSTR retVal = object.componentFromPoint(x, y);
Standards information
There are no standards that apply here.
Parameters
x [in]
Type: longSpecifies the client window coordinate of x.
y [in]
Type: longSpecifies the client window coordinate of y.
Remarks
The IHTMLElement2::componentFromPoint method, available as of Microsoft Internet Explorer 5, is applicable to any object that can be given scroll bars through Cascading Style Sheets (CSS).
The IHTMLElement2::componentFromPoint method might not return the same object consistently when it is used with the HTMLFrameSiteEvents::onmouseover event. Because a user's mouse speed and entry point can vary, different components of an element can fire the HTMLFrameSiteEvents::onmouseover event. For example, when a user moves the cursor over a textArea object with scroll bars, the event might fire when the mouse enters the component border, the scroll bars, or the client region. After the event fires, the expected element might not be returned, unless the scroll bars were the point of entry for the mouse. In this case, the HTMLFrameSiteEvents::onmousemove event can be used to provide more consistent results.
See also
Reference
Build date: 6/12/2012