Solved

coloured static controls

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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 …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

760 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now