?
Solved

CStatusBar

Posted on 1997-04-27
2
Medium Priority
?
774 Views
Last Modified: 2013-11-20
What do I do to change the color of the text in my status bar? In particular, I want to make it appear red so it stands out a bit more than the default text. I'm running win3.x and VC++1.52.
0
Comment
Question by:djamal
[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 Comments
 
LVL 10

Accepted Solution

by:
RONSLOW earned 20 total points
ID: 1301204
For VC 1.52 you can derive your own class from CStatusBar and handle the DoPaint - copy the implementation of DoPaint from MFC source and change it so that it call SetTextColor with your required color rather than the default (which is button text color).For MFC 3 etc which use CStatusBarCtrl to implement a status bar rather than directly in MFC code, you need to specify an owner-drawn menu pane and draw the pane yourself (use DrawItem) - there is a knowledge-base article on this if/when you move to 32 bit windows.
0
 

Author Comment

by:djamal
ID: 1301205
thanks;
0

Featured Post

Industry Leaders: 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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

762 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