armistad
2008-02-17 07:25:51 UTC
In my CMainFrame::OnCreate(...), I have:
...
TBBUTTONINFO buttonInfo;
buttonInfo.cbSize = sizeof(TBBUTTONINFO);
buttonInfo.dwMask = TBIF_TEXT | TBIF_STYLE;
buttonInfo.fsStyle = TBSTYLE_AUTOSIZE;
buttonInfo.pszText =
m_csButtonText.GetBuffer(m_csButtonText.GetLength());
CToolBarCtrl& toolBarCtrl = m_wndToolBar.GetToolBarCtrl();
toolBarCtrl.SetButtonInfo(ID_BTN_CLOSE, &buttonInfo);
(after the m_wndToolBar member is created) which I was hoping would
set text on one of my buttons, but it doesn't appear to do anything. I
would appreciate if someone could point out what more I would need to
do so that I can get text to display on one of my buttons (I want the
other buttons to retain their image and size).
...
TBBUTTONINFO buttonInfo;
buttonInfo.cbSize = sizeof(TBBUTTONINFO);
buttonInfo.dwMask = TBIF_TEXT | TBIF_STYLE;
buttonInfo.fsStyle = TBSTYLE_AUTOSIZE;
buttonInfo.pszText =
m_csButtonText.GetBuffer(m_csButtonText.GetLength());
CToolBarCtrl& toolBarCtrl = m_wndToolBar.GetToolBarCtrl();
toolBarCtrl.SetButtonInfo(ID_BTN_CLOSE, &buttonInfo);
(after the m_wndToolBar member is created) which I was hoping would
set text on one of my buttons, but it doesn't appear to do anything. I
would appreciate if someone could point out what more I would need to
do so that I can get text to display on one of my buttons (I want the
other buttons to retain their image and size).