Solved

coloured static controls

Posted on 2000-04-24
2
131 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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
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.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

707 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