CEdit Ctrl & Font 
Author Message
 CEdit Ctrl & Font

How do you change the font of an edit control created using the resource
workshop?
I have used SetFont of the CWnd class without success.

Thanks in advance
MG



Sat, 06 Jan 2001 03:00:00 GMT  
 CEdit Ctrl & Font

Quote:

>How do you change the font of an edit control created using the resource
>workshop?
>I have used SetFont of the CWnd class without success.

>Thanks in advance
>MG

You use SetFont(). The CFont used must live for the lifetime of the CEdit,
so you usually make it a member of it's parent dialog.

cU
--

   http://djuga.home.ml.org
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Retriever 2.0 is out: http://retriever.home.ml.org

Shareware image viewer, thumbnailer & database
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Sat, 06 Jan 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. CEdit derivated class & Ctrl+C

2. CEdit font & color

3. How to trap ctrl-C & ctrl-Break

4. Zortech Ctrl-C & Ctrl-Break

5. Set CEdit font to COleControl Font

6. ActiveX Ctrl && External Application

7. How to Create a Property Ctrl like ClassView&ResourceView&InforView in VC

8. Changing font & font size for CListView windows

9. Trapping Ctrl+Alt+Del / Ctrl+Esc / Ctrl+Alt+Esc

10. Newbie help with CEdit Ctrl

11. How do I add a CEdit Ctrl to a APPWiz App

12. Setting text in CEdit ctrl

 

 
Powered by phpBB® Forum Software