RecalcLayout(BOOL bNotify)
{
if(m_bInRecalcLayout)
return;
m_bInRecalcLayout = true;
CRect rc1,rc2;
GetClientRect(rc1);
rc1.right = rc1.right/2;
GetClientRect(rc2);
rc2.left = rc2.right/2;
if(::IsWindow(m_wndPanel.m_hWnd))
m_wndPanel.MoveWindow(&rc1); //继承自CWnd的一个控件
RepositionBars(0,0xffff,AFX_IDW_PANE_FIRST,reposExtra,CRect(0,0,0,0),&rc2);
m_bInRecalcLayout = false;
}