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

Method SetObjectRects

LegacyUpdate/ProgressBarControl.cpp:318–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316#pragma mark - IOleInPlaceObject
317
318STDMETHODIMP CProgressBarControl_IOleInPlaceObject::SetObjectRects(LPCRECT lprcPosRect, LPCRECT lprcClipRect) {
319 if (lprcPosRect == NULL) {
320 return E_POINTER;
321 }
322
323 m_pParent->m_width = lprcPosRect->right - lprcPosRect->left;
324 m_pParent->m_height = lprcPosRect->bottom - lprcPosRect->top;
325 return S_OK;
326}
327
328#pragma mark - IOleInPlaceActiveObject
329

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected