Solved

CStatusBar

Posted on 1997-04-27
2
752 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 10 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

Suggested Solutions

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…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

737 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