MCPcopy Create free account
hub / github.com/LegacyUpdate/LegacyUpdate / QueryHitPoint

Method QueryHitPoint

include/com/IViewObjectExImpl.h:119–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 }
118
119 STDMETHODIMP QueryHitPoint(DWORD dwAspect, LPCRECT pRectBounds, POINT ptlLoc, LONG lCloseHint, DWORD *pHitResult) {
120 if (pRectBounds == NULL || pHitResult == NULL) {
121 return E_POINTER;
122 }
123 *pHitResult = PtInRect(pRectBounds, *(POINT *)&ptlLoc) ? HITRESULT_HIT : HITRESULT_OUTSIDE;
124 return S_OK;
125 }
126
127 STDMETHODIMP QueryHitRect(DWORD dwAspect, LPCRECT pRectBounds, LPCRECT pRectLoc, LONG lCloseHint, DWORD *pHitResult) {
128 if (pRectBounds == NULL || pRectLoc == NULL || pHitResult == NULL) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected