다음을 통해 공유


IViewObjectExImpl::QueryHitRect

Checks whether the control's display rectangle overlaps any point in the specified location rectangle and returns a HITRESULT value in pHitResult.

STDMETHOD(QueryHitRect)(
   DWORD dwAspect,
   LPCRECT pRectBounds,
   LPRECT prcLoc,
   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::QueryHitRect in the Windows SDK.

Requirements

Header: atlctl.h

See Also

Reference

IViewObjectExImpl Class

IViewObjectExImpl::QueryHitPoint

Other Resources

IViewObjectExImpl Members