Change Bkground Color of a CStatic in a Dialog

With VC++ 5.0 is there a way to change the background color of a CStatic control that's in a dialog?
nbushmanAsked:
Who is Participating?
 
galkinConnect With a Mentor Commented:
You must handle WM_CTLCOLORSTATIC message and specify the brush you want to use as static background. Create brush in your dialog constructor, add macro ON_WM_CTLCOLORSTATIC and message handler. If you need check static window handle passed as LPARAM and return brush handle.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.