15,979
社区成员
发帖
与我相关
我的任务
分享
if (!m_wndToolBar.CreateEx(this,
TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(theApp.m_bHiColorIcons ? IDR_MAINFRAME_256 : IDR_MAINFRAME))
{
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}
if (!m_wndFEToolBar.CreateEx(this,
TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC | TBSTYLE_TOOLTIPS ,
CRect(1, 1, 1, 1), IDR_FE_TOOLBAR) ||
!m_wndFEToolBar.LoadToolBar(IDR_FE_TOOLBAR, 0, 0, TRUE, 0, 0, IDB_FE_TB_BITMAP)) {
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}