Setting the Background Color of a CEdit Box marked as Read-Only 
Author Message
 Setting the Background Color of a CEdit Box marked as Read-Only


> I am using Microsoft Visual C++ 4.0 and Developing a dialog box which
> needs be to marked as read-only, but the background color must also be
> set to a white color.  I have had no such luck in accomplishing this
> problem and was wondering if someone may know how to solve this
> problem.  I have tried the on draw feature but Microsoft Visual C++ will
> not over ride this feature.  Is there something that I am doing wrong
> while trying to set this edit controls background color or what should I
> do to set the background color.  Please give an example if possible to
> solve the problem.

> Thanks -- Damian Shepard
> __________________________________________________________________
> Damian A. Shepard
> General Dynamics Defense Systems
> Room 1373A
> 100 Plastics Ave.
> Pittsfield, MA 01201-3698

There is an example at the URL below that exactly addresses your


Cecil Galbraith

Free programmer's utilities and MFC tips at
http://www.*-*-*.com/ ~cgalbrai

Mon, 21 Feb 2000 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Setting text and background color in CEdit

2. How do you set the background color of a CEdit control

3. background color in readonly CEdit

4. CEdit box ** CEdit box ** CEdit box

5. set the text color and the background color of a Control Cbutton

6. Win2K: static background color vs. CFormView background color

7. Background & Text color CEdit

8. Background color of CEdit

9. Changing Background Color of CEdit - Problem With Double Clicking On Texts

10. background color of CEdit control

11. How to change background color Of CEdit?

12. Background color of a CEdit object.


Powered by phpBB® Forum Software