15,979
社区成员
发帖
与我相关
我的任务
分享
void CAutoFrm::RecalcLayout(BOOL bNotify)
{
if(m_bInRecalcLayout) return;
m_bInRecalcLayout = TRUE;
CRect rect,rect1,rect2,rect3,rect4;
GetClientRect(&rect);
rect.left=300;
rect.top=100;
rect.bottom-=40;
GetClientRect(&rect1);
rect1.right=300;
rect1.bottom=100;
GetClientRect(&rect2);
rect2.left=300;
rect2.bottom=100;
GetClientRect(&rect4);
rect4.top=rect4.bottom-40;
rect3.SetRect(0,100,300,rect4.top);
if(::IsWindow(mTitBar.m_hWnd)) mTitBar.MoveWindow(&rect1);
if(::IsWindow(mTopBar.m_hWnd)) mTopBar.MoveWindow(&rect2);
if(::IsWindow(mLeftBar.m_hWnd)) mLeftBar.MoveWindow(&rect3);
if(::IsWindow(mInfoBar.m_hWnd)) mInfoBar.MoveWindow(&rect4);
RepositionBars(AFX_IDW_PANE_FIRST,AFX_IDW_PANE_LAST,AFX_IDW_PANE_FIRST,reposExtra,CRect(0,0,0,0),&rect);
m_bInRecalcLayout = FALSE;
}