IViewObjectExImpl::QueryHitRect

HRESULT QueryHitRect( DWORD dwAspect, LPCRECT pRectBounds, LPRECT prcLoc, LONG lCloseHit, DWORD* pHitResult );

See IViewObjectEx::QueryHitRect in the Win32 SDK.

Remarks

Checks whether the control's display rectangle overlaps any point in the specified location rectangle and returns a HITRESULT value in pHitResult. The value can be either HITRESULT_HIT or HITRESULT_OUTSIDE.

If dwAspect equals DVASPECT_CONTENT, the method returns S_OK. Otherwise, the method returns E_FAIL.

IViewObjectExImpl OverviewClass Members

See Also   IViewObjectExImpl::QueryHitPoint