用VC开发多文档界面时,在主框架上怎样使工具条显示文字?

解决方案 »

  1.   

    see this,can help you:
    http://www.codeguru.com/toolbar/TextToolBar.shtml
    http://www.codeguru.com/toolbar/ToolbarText.html
      

  2.   

    工具条也是一个窗口,你想在上面干什么都行,在工具条的类里面加 你所要添加的窗口类的实例就行了,然后在MainFrame的OnCreate函数中
    CMyToolBar.CMyDialog.Create();
    就行了,CMyDialog可以是对话框、按钮、列表框等等
      

  3.   

    工具条是一个窗口,所以可以在调用CWnd : : SetWindowText来设置标题,例子如下: 
    int CMainFrame : : OnCreate (LPCREATESTRUCT lpCreateStruct ) 

    … 
    // Set the caption of the toolbar . 
    m_wndToolBar.SetWindowText (_T "Standdard") 
      

  4.   

    如果是在按钮上加文字: m_ToolBar.SetButtonText();当窗口是浮动时,用m_ToolBar.SetWindowText () 可以改变标题也可以在ToolBar上加其他控件。
      

  5.   

    如果是传统意义上的工具条,在设计工具条按钮时在按钮的bmp中写上汉字就可以了。