Solved

How to change the background color of a Formview?

Posted on 1998-02-26
1
314 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expand to include initial dialog with two choices. 9 67
how to monitor remote shell execution on linux 9 97
wait notify demo infinite loop 3 96
unix example issues 18 75
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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 Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

920 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

15 Experts available now in Live!

Get 1:1 Help Now