Solved

text on status bar

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

760 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

24 Experts available now in Live!

Get 1:1 Help Now