Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Custom message disappears from Status Bar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Custom message disappears from Status Bar

 Post Reply Post Reply
Author
Message
Sergey View Drop Down
Newbie
Newbie


Joined: 15 November 2004
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sergey Quote  Post ReplyReply Direct Link To This Post Topic: Custom message disappears from Status Bar
    Posted: 24 August 2005 at 3:34am

When user clicks a button on a toolbar we display a message in the Status Bar. However when user moves the mouse out of the button this message disappears because it is changed to "Ready" so the user can not read the message.

It should be noted that MFC does not change Status Bar text. To ensure that I created an MDI MFC application with the Wizard, changed the content of 'OnAppAbout()' method to:

CMainFrame * pFrame = DYNAMIC_DOWNCAST(CMainFrame,::AfxGetMainWnd());
    if (pFrame)
        pFrame->SetMessageText("MessageText MessageText");

Build and run the application, click "?" button and move the mouse out of the button. The Status Bar text was not replaced!

How to allow the user to read a custom message in the Status Bar?

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.438 seconds.