Solved

Change Bkground Color of a CStatic in a Dialog

Posted on 1997-11-17
1
369 Views
Last Modified: 2013-11-19
With VC++ 5.0 is there a way to change the background color of a CStatic control that's in a dialog?
0
Comment
Question by:nbushman
1 Comment
 
LVL 7

Accepted Solution

by:
galkin earned 50 total points
Comment Utility
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

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Need Help INsttalling wget on Mavericks OS X 3 81
Unix / Linux grid computing 5 125
iSeries DB2 Query 2 83
FizzBuzz challenge 9 72
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…
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.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 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

13 Experts available now in Live!

Get 1:1 Help Now