Solved

Set Background Color

Posted on 1998-11-07
1
173 Views
Last Modified: 2013-11-20
How does one set the background color for the main window in  a SDI program?
0
Comment
Question by:Mephisto
1 Comment
 
LVL 1

Accepted Solution

by:
TheGrinch earned 10 total points
ID: 1324347
In your OnDraw, do this at the beginning:

CRect client;
GetClientRect ( client );
pDC->FillSolidRect ( client, PALETTERGB(100,150,200) ); // Some color
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

Title # Comments Views Activity
not able to insert into temp table 68 174
Separate into files by filename 12 91
sameEnds challenge 3 187
Fibonacci challenge 11 138
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…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.

730 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