CEdit font & color 
Author Message
 CEdit font & color

Hello,

I have a CEdit control and i want who change the coloe and the font of this
control.

thank

Herv



Sun, 07 Oct 2001 03:00:00 GMT  
 CEdit font & color

Quote:
>I have a CEdit control and i want who change the coloe and the font of this
>control.

Herv,

To change the font, you can use SetFont - see Knowledge Base article
Q85518 "Correct Use of the SetFont() Function in MFC".

To change the colour you need to handle OnCtlColor - see Knowledge
Base article Q117778 "HOWTO: Change the Background Color of an MFC
Edit Control".

Dave
----
My address is altered to discourage junk mail.
Please post responses to the newsgroup thread,
there's no need for follow-up email copies.



Sun, 14 Oct 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. CEditView Background Color & Font Color :: MFC

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

3. CEdit for Colored font???

4. CEdit controls and changing the font color

5. Change font and color in CEdit end/or CStatic

6. CEdit Font Color / Style

7. CEdit Ctrl & Font

8. Background & Text color CEdit

9. CEdit & Color (Newbie)

10. CEdit color & scroll

11. Changing font & color of tree view Items

12. CListrCtrl & Change Color and/or Font :: MFC

 

 
Powered by phpBB® Forum Software