Solved

CStatusBar

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

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: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

685 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