How to change a property pages background color?


There're 3 propertypages on propertysheet..

First, I want to change whole color of dialog...

Actually I've done. But I can't change the color of tab...

and,, how can i change a static text & 

group box label to transparent..?

Who is Participating?
naveenkohliConnect With a Mentor Commented:
1.Lok at the folowing article. It should give you idea on how to change the color of tab.

HOWTO: Change the Text Color of the Selected Property Sheet Tab

2. To make the color of the static controls same as dialog box, you will have to handle the WM_CTLCOLOR message in your property pages and return the handle of same color as your dialog box..

HBRUSH CMyPage::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
CBrush staticBrush;
          switch (nCtlColor) {

          case CTLCOLOR_STATIC:
staticBrush.CreateSolidBrush (/** USe ur dialog box color **/);
              return HBRUSH(staticBrush);

              return CPropertyPage::OnCtlColor(pDC, pWnd, nCtlColor);

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.