| 328 | #pragma mark - IOleInPlaceActiveObject |
| 329 | |
| 330 | STDMETHODIMP 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 |
nothing calls this directly
no outgoing calls
no test coverage detected