Solved

text on status bar

Posted on 1998-06-04
2
161 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Whole sheet autoscrub still needed 19 54
maven archtype selection in eclipse 1 59
has22 challenge 11 109
lucky13 challenge 11 165
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

732 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