Solved

CStatusBar

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

Suggested Solutions

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

856 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