In my project, I display a message "Running" in the main pane of the status bar instead of "Ready" when a button is clicked. But when I click on a menu item and then back in the main window, the text changes back to "Ready". Any idea how to prevent it from doing so?
I use the following function in my main view file:
void CSerialView::OnButton1()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CMainFrame* pFrameParent = (CMainFrame *)GetParentFrame();
pFrameParent->m_wndStatusBar.SetPaneText(0,"Running...");
}
I use the following function in my main view file:
void CSerialView::OnButton1()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CMainFrame* pFrameParent = (CMainFrame *)GetParentFrame();
pFrameParent->m_wndStatusBar.SetPaneText(0,"Running...");
}