大家帮我看看,我想在同一个对话框上创建两个工具条,请问下面的程序有什么问题?我怀疑是RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 0);有问题
或者大家有什么好方法?创建一个时没有问题,谢谢  
if(!m_wndToolBar1.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | 
   WS_BORDER | CBRS_ALIGN_TOP | CBRS_TOOLTIPS,CRect(62,45,0,0)) 
   || !m_wndToolBar1.LoadToolBar(IDR_TOOLBAR2))
{
    TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}
RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 0);
    //初始化工具条
if(!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | 
   WS_BORDER | CBRS_TOP | CBRS_TOOLTIPS | CBRS_FLYBY,CRect(30,30,0,0)) 
   || !m_wndToolBar.LoadToolBar(IDR_TOOLBAR1))
{
    TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}
    RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 0);