Solved

coloured static controls

Posted on 2000-04-24
2
129 Views
Last Modified: 2013-11-20
I want to know about coloured static controls
0
Comment
Question by:nitinkadam
  • 2
2 Comments
 
LVL 11

Accepted Solution

by:
mikeblas earned 50 total points
ID: 2746386
To color a static control, make sure it has a unique ID.  -1, or IDC_STATIC won't do.

Then, add a OnCtlColor() handler. In that handler, call SetBkColor() to set the background color of the control. And call SetTextColor() to set the text color of the control.

Besides that, what do you want to know?

..B ekiM

0
 
LVL 11

Expert Comment

by:mikeblas
ID: 2746512
Why did you leave a grade of "C"?  Why did you provide no explanation for such a crummy grade?  Was there something else you needed to know?  I offered to expand my answer for you, but you didn't take me up on the offer. Why would you ignore my extension of additional help but leave a poor grade?

I can't understand your grading style.

..B ekiM
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

Title # Comments Views Activity
building a service to accessed via telnet client, want colors ? 4 98
sumHeights2  challenge 7 131
firstChar challenge 13 133
Way to decrease size of apk file 9 109
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 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