Returns the component located at the specified coordinates.
Syntax
HRESULT componentFromPoint( long lCoordX, long lCoordY, BSTR *psComponent );
Parameters
- lCoordX
- Long variable that specifies the client window coordinate of x, in long format.
- lCoordY
- Long variable that specifies the client window coordinate of y, in long format.
- psComponent
- Address of a string (BSTR) that contains the return value. See the componentFromPoint method for details.
Return Value
Returns S_OK if successful, or an error code otherwise.