//UI handler in the message map updates the status bar text: afx_msg void OnUpdatePane(CCmdUI* pCmdUI);ON_UPDATE_COMMAND_UI(ID_INDICATOR_SCRL, &CMainFrame::OnUpdatePane)void CMainFrame::OnUpdatePane(CCmdUI* pCmdUI) { pCmdUI->SetText(_T("hello,World")); } 或者调用 CStatusBar::SetPaneText();直接调用CFrameWnd::SetMessageText()
afx_msg void OnUpdatePane(CCmdUI* pCmdUI);ON_UPDATE_COMMAND_UI(ID_INDICATOR_SCRL, &CMainFrame::OnUpdatePane)void CMainFrame::OnUpdatePane(CCmdUI* pCmdUI)
{
pCmdUI->SetText(_T("hello,World"));
}
或者调用
CStatusBar::SetPaneText();直接调用CFrameWnd::SetMessageText()