Solved

text on status bar

Posted on 1998-06-04
2
158 Views
Last Modified: 2013-11-19
I have a progress bar on the right hand side of the status bar and now I want to put some text just to the left to indicate what is "progressing".  When I put a CStatic element there though updating it with a SetWindowText has no effect.  What do I need to do?
0
Comment
Question by:Ashurbanipal
  • 2
2 Comments
 
LVL 10

Accepted Solution

by:
RONSLOW earned 50 total points
ID: 1315991
You may need to force the status bar to update.

0
 
LVL 10

Expert Comment

by:RONSLOW
ID: 1315992
eg .. something like this...

void CMyMainFrame::UpdateStatusBar () {
      CStatusBar* pStatusBar = (CStatusBar*)GetMessageBar();
      if (! pStatusBar) return;
      pStatusBar->SendMessage(WM_IDLEUPDATECMDUI); // Include ::AfxPRIV.H.
      pStatusBar->UpdateWindow();
}

Call this after setting the status bar text.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Different colored text in ComboBox without Subclassing 8 55
Windows Drag & Drop Location 2 94
ShiftLeft challenge 21 76
wordmultiple challenge 12 118
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now