?
Solved

coloured static controls

Posted on 2000-04-24
2
Medium Priority
?
137 Views
Last Modified: 2013-11-20
I want to know about coloured static controls
0
Comment
Question by:nitinkadam
[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
2 Comments
 
LVL 11

Accepted Solution

by:
mikeblas earned 100 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: 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: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month7 days, 19 hours left to enroll

765 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