CReBar显示时,边框线之间存在缝隙,请问各位大哥,怎么设置才能取消这些缝隙(最好提供代码)// 建立CReBar
if(!m_wndReBar.Create(this))
{
TRACE0("Failed to create rebar\n");
return -1; // fail to create
}
// 建立工具条
DWORD dwToolStyle = WS_CHILD | WS_VISIBLE | CBRS_TOOLTIPS| CBRS_FLYBY;
if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, dwToolStyle) ||
!m_wndToolBar.LoadToolBar(IDR_MAINFRAME))
{
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}
// 加载工具条
if(!m_wndReBar.AddBar(&m_wndToolBar))
{
TRACE0("Failed to create rebar\n");
return -1; // fail to create
}
// 修改CReBar的边框
DWORD dwStyle = m_wndReBar.GetBarStyle();
dwStyle |= CBRS_BORDER_TOP | CBRS_BORDER_BOTTOM | CBRS_BORDER_LEFT | CBRS_BORDER_RIGHT;
m_wndReBar.SetBarStyle(dwStyle);
if(!m_wndReBar.Create(this))
{
TRACE0("Failed to create rebar\n");
return -1; // fail to create
}
// 建立工具条
DWORD dwToolStyle = WS_CHILD | WS_VISIBLE | CBRS_TOOLTIPS| CBRS_FLYBY;
if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, dwToolStyle) ||
!m_wndToolBar.LoadToolBar(IDR_MAINFRAME))
{
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}
// 加载工具条
if(!m_wndReBar.AddBar(&m_wndToolBar))
{
TRACE0("Failed to create rebar\n");
return -1; // fail to create
}
// 修改CReBar的边框
DWORD dwStyle = m_wndReBar.GetBarStyle();
dwStyle |= CBRS_BORDER_TOP | CBRS_BORDER_BOTTOM | CBRS_BORDER_LEFT | CBRS_BORDER_RIGHT;
m_wndReBar.SetBarStyle(dwStyle);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货