void COleCntrFrameWnd::RecalcLayout(BOOL /*bNotify*/) { if (!m_bInRecalcLayout) { m_bInRecalcLayout = TRUE; m_nIdleFlags &= ~(idleLayout|idleNotify); ASSERT_VALID(m_pInPlaceFrame); COleServerDoc* pDoc = (COleServerDoc*)m_pInPlaceFrame->GetActiveDocument(); if (pDoc != NULL && AfxGetThread()->m_pActiveWnd == m_pInPlaceFrame) { ASSERT_VALID(pDoc); ASSERT_KINDOF(COleServerDoc, pDoc); if (this == m_pInPlaceFrame->m_pMainFrame) pDoc->OnResizeBorder(NULL, m_pInPlaceFrame->m_lpFrame, TRUE); if (this == m_pInPlaceFrame->m_pDocFrame) pDoc->OnResizeBorder(NULL, m_pInPlaceFrame->m_lpDocFrame, FALSE); } m_bInRecalcLayout = FALSE; } }
void CBCGPOleCntrFrameWnd::AdjustClientArea() { COleServerDoc* pDoc = (COleServerDoc*)m_pInPlaceFrame->GetActiveDocument(); if (pDoc != NULL ) { ASSERT_VALID(pDoc); ASSERT_KINDOF(COleServerDoc, pDoc); CBCGPOleDocIPFrameWnd* pFrame = (CBCGPOleDocIPFrameWnd*)m_pInPlaceFrame; pDoc->OnResizeBorder(NULL, pFrame->m_lpFrame, TRUE); } }