Compartir a través de


IViewObjectExImpl::QueryHitPoint

Checks if the specified point is in the specified rectangle and returns a HITRESULT value in pHitResult.

STDMETHOD(QueryHitPoint)(
   DWORD dwAspect,
   LPCRECT pRectBounds,
   POINT ptlLoc,
   LONG /* lCloseHit */,
   DWORD* /* pHitResult */ 
);

Remarks

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.

See IViewObjectEx::QueryHitPoint in the Windows SDK.

Requirements

Header: atlctl.h

See Also

Reference

IViewObjectExImpl Class

IViewObjectExImpl::QueryHitRect

Other Resources

IViewObjectExImpl Members