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

Method ResizeBorder

LegacyUpdate/ProgressBarControl.cpp:330–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328#pragma mark - IOleInPlaceActiveObject
329
330STDMETHODIMP CProgressBarControl_IOleInPlaceActiveObject::ResizeBorder(LPCRECT prcBorder, IOleInPlaceUIWindow *pUIWindow, BOOL fFrameWindow) {
331 if (prcBorder && m_pParent->m_innerHwnd) {
332 LONG width = prcBorder->right - prcBorder->left;
333 LONG height = prcBorder->bottom - prcBorder->top;
334
335 m_pParent->m_width = width;
336 m_pParent->m_height = height;
337
338 SetWindowPos(
339 m_pParent->m_innerHwnd, NULL,
340 prcBorder->left, prcBorder->top,
341 width, height,
342 SWP_NOZORDER | SWP_NOACTIVATE
343 );
344 }
345
346 return S_OK;
347}
348
349#pragma mark - Helper methods
350

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected