Question on toolbar button text
I have created a toolbar in dialog
Code:
if (!m_Toolbar.Create(this) || !m_Toolbar.LoadToolBar (IDR_TOOLBAR1))
{
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}
m_Toolbar.ModifyStyle(0, TBSTYLE_FLAT);
m_Toolbar.SetButtonText(0,"Add");
m_Toolbar.SetSizes(CSize(75,55),CSize(32,32));
After that i used some code from others to embed the toolbar into the dialog
Code:
...................
...................
...................
RepositionBars(AFX_IDW_CONTROLBAR_FIRST,AFX_IDW_CONTROLBAR_LAST,0);
I've use GetButtonText to confirm that the text is being added but it just don't show up....
Did i missed any step to show the button text?? :(
Thanks......