This method is called by the framework in response to a container's IViewObjectEx::QueryHitPoint request. Queries whether an object's display rectangle overlaps the specified point (hits the point). QueryHitPoint can be overridden to test hits for non-rectangular objects.
Header file: | Afxctl.h |
Platforms: | H/PC 2.0, H/PC Pro |
Windows CE versions: | 2.0 and later |
Complete documentation: | Visual C++ documentation |
virtual BOOL OnQueryHitPoint( DWORD dwAspect,
LPCRECT pRectBounds, POINT ptlLoc, LONG lCloseHint,
DWORD* pHitResult );