为什么我的工具条在状态栏的下面?
我在CMainFrame的OnCreate中有这么一段代码,在窗口底部添加一个工具条:
if (!m_tblBottom.
CreateEx(this, TBSTYLE_BUTTON, WS_CHILD | WS_VISIBLE | CBRS_BOTTOM |CBRS_TOOLTIPS | CBRS_FLYBY |CBRS_SIZE_DYNAMIC)
|| !m_tblBottom.LoadToolBar(IDR_TOOLBAR_BOTTOM)) {
TRACE0("Failed to create bottoom toolbar\n");
return -1;
}
m_tblBottom.EnableDocking(CBRS_ALIGN_BOTTOM);
DockControlBar(&m_tblBottom);
但这个工具条出现在状态条的下面,我想让它放在状态条上面,怎么办?
这个程序是一个单文档的程序。