CFrameWnd::SetMessageText
或者取到statusbar的指针,用CStatusBar的相应成员函数.

解决方案 »

  1.   

    具体操作忘记了,但是肯定在《Visual c++ 技术内幕》(第五版)相关章节里边有,好像很简单的样子,而且讲的很透彻,自己看看好了。Good luck.
      

  2.   

    在CMainFrame::中
    char str[20];
    CStatusBar m_wndStaturBar;
    CMainFrame* pMFrame=(CMainFrame*)AfxGetMainWnd();
    pMFrame->m_wndStatusBar.SetPaneText(1,str,TRUE)
      

  3.   

    应该为:
    在CMainFrame::中char str[20];
    CStatusBar m_wndStaturBar;
    CMainFrame* pMFrame=(CMainFrame*)AfxGetMainWnd();
    pMFrame->m_wndStatusBar.SetPaneText(0,str,TRUE)