This member function is called by the framework in response to a container's IViewObjectEx::QueryHitPoint request. Queries whether an object's display rectangle overlaps the given point (hits the point). QueryHitPoint can be overridden to test hits for non-rectangular objects.
virtual BOOL OnQueryHitPoint( DWORD dwAspect, LPCRECT pRectBounds, POINT ptlLoc, LONG lCloseHint, DWORD* pHitResult );
Header file: | Afxctl.h |
Platforms: | |
Versions: | 2.0 and later |
Complete documentation | Visual C++ documentation |
COleControl Overview, COleControl Member Functions, Control Classes, COleControl::OnQueryHitRect