?
Solved

text on status bar

Posted on 1998-06-04
2
Medium Priority
?
164 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 150 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

752 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