MainFrm.cpp框架类下,找到OnCreate方法
m_wndMenuBar.EnableDocking(CBRS_ALIGN_ANY);
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockPane(&m_wndMenuBar);
DockPane(&m_wndToolBar);
改为:
AddPane(&m_wndMenuBar);
AddPane(&m_wndToolBar);