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

Method QueryHitRect

include/com/IViewObjectExImpl.h:127–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125 }
126
127 STDMETHODIMP QueryHitRect(DWORD dwAspect, LPCRECT pRectBounds, LPCRECT pRectLoc, LONG lCloseHint, DWORD *pHitResult) {
128 if (pRectBounds == NULL || pRectLoc == NULL || pHitResult == NULL) {
129 return E_POINTER;
130 }
131 *pHitResult = IntersectRect((LPRECT)pHitResult, pRectBounds, pRectLoc) ? HITRESULT_HIT : HITRESULT_OUTSIDE;
132 return S_OK;
133 }
134
135 STDMETHODIMP GetNaturalExtent(DWORD dwAspect, LONG lindex, DVTARGETDEVICE *ptd, HDC hicTargetDev, DVEXTENTINFO *pExtentInfo, LPSIZEL pSizel) {
136 return GetExtent(dwAspect, lindex, ptd, pSizel);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected