Two labels with two different fonts! 
Author Message
 Two labels with two different fonts!

Hello, everybody!

I want to make two labels in my dialog box with different fonts, how can I
do?

e.g.  one label with string "ABCDE" and the font is Times New Roman,
        another label with string "BBCCDD" and the font is Courier New.

Thanks for any help!



Fri, 01 Dec 2000 03:00:00 GMT  
 Two labels with two different fonts!

Quote:
>I want to make two labels in my dialog box with different fonts, how can I
>do?

If you ensure that you labels have unique IDs - i.e. not the default
-1 ID, then the SetFont function should do what you need.

Have a look at Knowledge Base article Q85518 "Correct Use of the
SetFont() Function in MFC".

Dave
----
Address is altered to discourage junk mail.
Please post responses to the newsgroup thread,
there's no need for follow up email copies.
http://www.bj.co.uk



Fri, 01 Dec 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. two com exes running on two different machines

2. Tooltips - How can I obtain two different fonts?

3. using different fonts for two static texts in one dialog

4. Utilizing ODBC to communicate two different processes on different machines

5. Button label on two lines

6. Dialog Box two OK buttons, two Cancel buttons and TODO still on it

7. DCOM and ATL: two client and two server

8. two DLLs, two threads, problem

9. How to enclose two documents, two views in one Child Frame

10. How use two documents and two views in a MDI application

11. Difference between two different ways of doing things

12. Displaying Data From Two Different Databases

 

 
Powered by phpBB® Forum Software