CEdit & Color (Newbie) 
Author Message
 CEdit & Color (Newbie)

h,

I'd like to change the color of a Control Edit...
when I use the function SetBkColor , it only changes the background of the
text,
not all the backcolor in the control...

How should I do ???

I've tried to colorize the control with a rectangle but then I must use
textout to rewrite the text... there must be a way to do that more easily,
isn't it ????

thanks



Tue, 04 May 2004 17:06:01 GMT  
 CEdit & Color (Newbie)
Hi!

Quote:

> h,

> I'd like to change the color of a Control Edit...
> when I use the function SetBkColor , it only changes the background of the
> text,
> not all the backcolor in the control...

> How should I do ???

> I've tried to colorize the control with a rectangle but then I must use
> textout to rewrite the text... there must be a way to do that more easily,
> isn't it ????

Return the handle (HBRUSH) to a solid brush of the color you want for the control's background. Do
not create the brush over-and-over again in the handler.

HTH,

Jeff...
--
Please post all follow-ups to the newsgroup only.



Tue, 04 May 2004 18:21:55 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Background & Text color CEdit

2. CEdit color & scroll

3. CEdit font & color

4. newbie Q: Color palette dialog and colored listbox

5. Caption bar color & CSliderCtrl Color

6. CEditView Background Color & Font Color :: MFC

7. CEdit box ** CEdit box ** CEdit box

8. Background color of CEdit

9. How to change color of scrollbar in a CEdit class

10. how to set the color of font for a CEdit Control

11. CEdit text color

12. Changing text color in a CEdit box

 

 
Powered by phpBB® Forum Software