Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


How to change a property pages background color?

Posted on 1999-08-03
Medium Priority
Last Modified: 2013-11-20

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..?

Question by:kimsh01
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
1 Comment
LVL 23

Accepted Solution

naveenkohli earned 200 total points
ID: 1312458
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);


Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

670 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