I have created a toolbar in dialog
After that i used some code from others to embed the toolbar into the dialogCode: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));
I've use GetButtonText to confirm that the text is being added but it just don't show up....Code:................... ................... ................... RepositionBars(AFX_IDW_CONTROLBAR_FIRST,AFX_IDW_CONTROLBAR_LAST,0);
Did i missed any step to show the button text??
Thanks......





Reply With Quote