How to create a bold and italic label in MFC?
Posted
by Hamish Grubijan
on Stack Overflow
See other posts from Stack Overflow
or by Hamish Grubijan
Published on 2010-04-13T17:54:30Z
Indexed on
2010/04/13
18:03 UTC
Read the original article
Hit count: 357
Please do not mark it as a dupe of this question just yet:
http://stackoverflow.com/questions/1881865/bold-labels-in-mfc
That question does not help me; for some reason I do not see the rich edit control. Instead I believe I have to do it in code. here is a sample I found:
http://www.tech-archive.net/Archive/VC/microsoft.public.vc.mfc/2006-10/msg00245.html
My problem is that I prefer not to re-invent the wheel and test for errors myself or through QA.
Someone must have implemented this before. Please share your code.
What I would like to do is:
- Keep the same font size, family, etc. as in the already created label, but make it bold and italic as well.
- Keep the memory footprint reasonably low (do not create any new unnecessary objects), but do not get the app into an inconsistent state either.
I appreciate your help.
© Stack Overflow or respective owner