Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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::QueryHitPoint