This member function 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 given rectangle (hits the rectangle). QueryHitRect can be overridden to test hits for non-rectangular objects.
virtual BOOL OnQueryHitRect( DWORD dwAspect, LPCRECT pRectBounds, LPCRECT prcLoc, 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::OnQueryHitPoint