我想向框架窗口添加对话框
1:在CMainFrame.h中
public:
CDialogBar m_wndColorDlgBar;
2:OnCreate()中添加
if (!m_wndColorDlgBar.Create(this,IDD_DIALOGBAR,CBRS_BOTTOM,AFX_IDW_CONTROLBAR_LAST-1))
{
TRACE0("Failed to create dialog bar\n");
return -1;      // fail to create
}

m_wndColorDlgBar.EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndColorDlgBar);编译时没有错误
运行时出现错误对话框,主要内容如下:
Program:D:\Dialog\debug\Dialog.exe
File:bardlg.cpp
Line:48怎么回事啊????