COleControl::OnQueryHitRect

This method is called by the framework in response to a container's IViewObjectEx::QueryHitRect request. Queries whether an object's display rectangle overlaps any point in the specified rectangle (hits the rectangle). QueryHitRect can be overridden to test hits for non-rectangular objects.

At a Glance

Header file: Afxctl.h
Platforms: H/PC 2.0, H/PC Pro
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

virtual BOOL OnQueryHitRect( DWORD dwAspect,
LPCRECT
pRectBounds, LPCRECT prcLoc, LONG lCloseHint,
DWORD*
pHitResult );

See Also

COleControl::OnQueryHitPoint