贴子在www.vchelp里,地址:
http://www.vchelp.net/cndevforum/subject_view.asp?subject_id=133392&forum_id=59谢谢``

解决方案 »

  1.   

    代码如下:
    int nIndex = 0;TBBUTTON tb; for (nIndex = m_wndToolBar.GetToolBarCtrl().GetButtonCount() - 1; nIndex >= 0; nIndex--)
    {
    ZeroMemory(&tb, sizeof(TBBUTTON));
    m_wndToolBar.GetToolBarCtrl().GetButton(nIndex, &tb); if ((tb.fsStyle & TBSTYLE_SEP) == TBSTYLE_SEP)
    continue; if (tb.idCommand == 0)
    continue; CString strText;
    LPCTSTR lpszButtonText = NULL;
    CString strButtonText(_T(""));
    _TCHAR seps[] = _T("\n");
    strText.LoadString(tb.idCommand); if (!strText.IsEmpty())
    {
    lpszButtonText = _tcstok((LPTSTR)(LPCTSTR)strText, seps); while(lpszButtonText)
    {
    strButtonText = lpszButtonText;
    lpszButtonText = _tcstok(NULL, seps);
    }
    } if (!strButtonText.IsEmpty())
    m_wndToolBar.SetButtonText(nIndex, strButtonText);
    }
      

  2.   

    你可以参考一下这个http://www.vckbase.com/document/viewdoc/?id=726
      

  3.   

    我参考了``还是不行``汗`不知道搞啥问题``问题是出在这三句话:
    a.Add(AfxGetApp()->LoadIcon(IDR_ABVV33TYPE));
    a.Add(AfxGetApp()->LoadIcon(IDR_MAINFRAME)); m_wndToolBar.GetToolBarCtrl().SetImageList(&a);郁闷``