VC2008 CMFCRibbonStatusBar显示...
|
//初始化字符短时
pMainFrame->m_wndStatusBar.GetElement(0)->SetText(str);
pMainFrame->m_wndStatusBar.GetElement(0)->SetDescription(m_strJzqid+"显示当前串口的状态");
//必须添加的,否则无法动态显示
pMainFrame->m_wndStatusBar.GetElement(0)->Redraw();
pMainFrame->m_wndStatusBar.RedrawWindow();
//最后一句话必须加,否则显示字符串不全,或者初始化时初始化一个比较大的字符串
m_wndStatusBar.AddElement(new CMFCRibbonStatusBarPane(ID_STATUSBAR_PANE3, "就绪", TRUE), "传输状态");