Solved

Set Background Color

Posted on 1998-11-07
1
169 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

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
Prevent this page from creating additional dialogs. 3 416
VBA "SendKeys" Syntax for Multiple Keystrokes 7 103
tripleUp challenge 7 74
Problem to App 4 40
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…
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 Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
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.

863 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

23 Experts available now in Live!

Get 1:1 Help Now