IViewObjectEx
| 87 | |
| 88 | // IViewObjectEx |
| 89 | STDMETHODIMP GetRect(DWORD dwAspect, LPRECTL pRect) { |
| 90 | if (pRect == NULL) { |
| 91 | return E_POINTER; |
| 92 | } |
| 93 | |
| 94 | if (dwAspect != DVASPECT_CONTENT) { |
| 95 | return DV_E_DVASPECT; |
| 96 | } |
| 97 | |
| 98 | if (!this->m_pParent->m_innerHwnd) { |
| 99 | return E_FAIL; |
| 100 | } |
| 101 | |
| 102 | RECT rect; |
| 103 | GetClientRect(this->m_pParent->m_innerHwnd, &rect); |
| 104 | pRect->left = rect.left; |
| 105 | pRect->top = rect.top; |
| 106 | pRect->right = rect.right; |
| 107 | pRect->bottom = rect.bottom; |
| 108 | return S_OK; |
| 109 | } |
| 110 | |
| 111 | STDMETHODIMP GetViewStatus(DWORD *pdwStatus) { |
| 112 | if (pdwStatus == NULL) { |
nothing calls this directly
no outgoing calls
no test coverage detected