状态栏的变量(默认为保护变量,推荐改为公有变量)
CMFCStatusBar m_wndStatusBar;
例子
CString str;
str.Format("P(X:%d,Y:%d)=%d", img_pt.x, img_pt.y, piex);
//获取主框架的句柄
CMainFrame* pFrame = (CMainFrame*)AfxGetApp()->GetMainWnd();
pFrame->m_wndStatusBar.SetPaneText(1, str); //在第一个位置显示str信息