Solved

How to change the background color of a Formview?

Posted on 1998-02-26
1
312 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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

772 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

11 Experts available now in Live!

Get 1:1 Help Now