Solved

Set Background Color

Posted on 1998-11-07
1
172 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: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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
Looking for a specific application/software 2 114
format the code in java 6 101
tripleUp challenge 7 86
"Black Box" Testing of Control System Software 2 70
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 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