Click to return to the Reusing Browser Technology home page    
IElementBehaviorRender::G...     IElementBehaviorSite Inte...     IElementBehaviorRender In...    
Web Workshop  |  Reusing Browser Technology

IElementBehaviorRender::HitTestPoint Method


Retrieves a value that specifies whether the point is contained in the Dynamic HTML (DHTML) behavior.

Syntax

HRESULT HitTestPoint(
    POINT *pPoint,
    IUnknown *pReserved,
    BOOL *pbHit
);

Parameters

pPoint
[in] Address of a POINT structure that specifies the point to be tested.
pReserved
[in] Reserved for future use.
pbHit
[out] Address of a Boolean value that returns TRUE if the point indicates a hit.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

Use this method to provide accurate hit testing for irregularly shaped objects.

You must return the BEHAVIORRENDERINFO_HITTESTING flag from the IElementBehaviorRender::GetRenderInfo method to participate in hit testing.

Note This method is available as of Microsoft® Internet Explorer 5 and is subject to change in future versions.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.