Solved

How to change the background color of a Formview?

Posted on 1998-02-26
1
318 Views
Last Modified: 2013-11-20
Hi all,

I created an MDI view derived from formview.
But the default background color is greyish in color,
how do I change the background color of this formview
to say white?

thanks.
0
Comment
Question by:tots
1 Comment
 
LVL 7

Accepted Solution

by:
galkin earned 20 total points
ID: 1316609
Override PreCreateWindow for your class. register new class with AfxRegisterwndClass passing brush you want to be as background. Assign retured value to lpszClass field of CREATESTRUCT structure and call the base class implementation
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
In this post we will learn different types of Android Layout and some basics of an Android App.
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 an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

679 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