| 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) { |
nothing calls this directly
no outgoing calls
no test coverage detected