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

Method GetRect

include/com/IViewObjectExImpl.h:89–109  ·  view source on GitHub ↗

IViewObjectEx

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected