Solved

CStatusBar

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

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…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

708 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

16 Experts available now in Live!

Get 1:1 Help Now