Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

status bar message help needed!

Status
Not open for further replies.

zaknwfp

Technical User
Jul 30, 2004
5
US
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...");
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top