Solved

text on status bar

Posted on 1998-06-04
2
159 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Replacement selected text 2 62
post4 challenge 28 102
child constructor and parent constructor, overriding and overloading 6 88
Message not shown 5 51
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

831 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