在工具栏添加了10个按钮,create后。setbuttontext设置了文本,可是运行只出来前7个按钮,后面几个怎么不见了呢??
if (!m_wndMyToolBar1.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndMyToolBar1.LoadToolBar(IDR_TOOLBAR_STRUC1))
{
TRACE0("Failed to create toolbar\n");
return -1;      // fail to create
} m_wndMyToolBar1.SetButtonText(0,_T("File"));
m_wndMyToolBar1.SetButtonText(1,_T("Edit"));
m_wndMyToolBar1.SetButtonText(2,_T("Display"));
m_wndMyToolBar1.SetButtonText(3,_T("Draw"));
m_wndMyToolBar1.SetButtonText(4,_T("Animate"));
m_wndMyToolBar1.SetButtonText(5,_T("Moive"));
m_wndMyToolBar1.SetButtonText(6,_T("Mod"));//后面的就显示不出来了??
m_wndMyToolBar1.SetButtonText(7,_T("F"));
m_wndMyToolBar1.SetButtonText(8,_T("T"));m_wndMyToolBar1.SetSizes(CSize(32,32),CSize(8,8));
m_wndMyToolBar1.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndMyToolBar1);
为什么后面的就显示不出来了呢?尺寸设置问题么,该怎么设呢?
m_wndMyToolBar1.SetButtonText(6,_T("Mod"));//后面的就显示不出来了??
m_wndMyToolBar1.SetButtonText(7,_T("F"));
m_wndMyToolBar1.SetButtonText(8,_T("T"));