IViewObjectExImpl::QueryHitRect

This method 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.

Syntax

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

At a Glance

Header file: Atlctl.h
Platforms:
Versions: Version 2.0 and later
Complete documentation: Visual C++ documentation

See Also

IViewObjectExImpl Overview, IViewObjectExImpl Methods, IViewObjectEx::QueryHitRect, IViewObjectExImply::QueryHitPoint