status bar
-
Last I read it was very difficult to alter the text in pane 0. This is because the MFC framework is always writing something to it, so even if you wrote something else to it, it would only last a fraction of a second until MFC changed it. Depending on what you are doing, it might be better to create a second pane and write to it.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
-
Last I read it was very difficult to alter the text in pane 0. This is because the MFC framework is always writing something to it, so even if you wrote something else to it, it would only last a fraction of a second until MFC changed it. Depending on what you are doing, it might be better to create a second pane and write to it.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
With the following steps: 1.Define a value,such as ID_FO_INDEX_MOUSEPOS. static UINT indicators[] = { ID_SEPARATOR, // status line indicator ID_FO_INDEX_MOUSEPOS, ID_INDICATOR_CAPS, ID_INDICATOR_NUM, ID_INDICATOR_SCRL, }; 2.Add a update message to your view. afx_msg void OnUpdateMousePos(CCmdUI *pCmdUI); ON_UPDATE_COMMAND_UI(ID_FO_INDEX_MOUSEPOS, OnUpdateMousePos) 3.Change it with the following style: void CFOPCanvasCore::OnUpdateMousePos(CCmdUI *pCmdUI) { pCmdUI->SetText(m_IndMousePosString); } Jack --------------------------------------------------------------------------------- XD++ MFC/C++ Flow/Diagram Library -- http://www.ucancode.net
-
With the following steps: 1.Define a value,such as ID_FO_INDEX_MOUSEPOS. static UINT indicators[] = { ID_SEPARATOR, // status line indicator ID_FO_INDEX_MOUSEPOS, ID_INDICATOR_CAPS, ID_INDICATOR_NUM, ID_INDICATOR_SCRL, }; 2.Add a update message to your view. afx_msg void OnUpdateMousePos(CCmdUI *pCmdUI); ON_UPDATE_COMMAND_UI(ID_FO_INDEX_MOUSEPOS, OnUpdateMousePos) 3.Change it with the following style: void CFOPCanvasCore::OnUpdateMousePos(CCmdUI *pCmdUI) { pCmdUI->SetText(m_IndMousePosString); } Jack --------------------------------------------------------------------------------- XD++ MFC/C++ Flow/Diagram Library -- http://www.ucancode.net
You'll also need a stringtable entry for
ID_FO_INDEX_MOUSEPOS
in the project's .rc file.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown