您的位置:首页 > 其它

对话框上创建CMFCToolBar

2015-06-24 11:35 295 查看
CMFCToolBar m_wndToolBar;

if (!m_wndToolBar.CreateEx(this, TBSTYLE_AUTOSIZE, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC|CBRS_FLOATING, CRect(1,1,1,1), IDR_TOOLBAR2) ||

!m_wndToolBar.LoadToolBar(IDR_TOOLBAR2))

{

TRACE0("未能创建工具栏\n");

return -1; // 未能创建

}

m_wndToolBar.EnableCustomizeButton(TRUE, 500, L"自定义",FALSE);

m_wndToolBar.AdjustSizeImmediate();
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: