Bold labels in MFC
Asked Answered
I

1

4

I want to create labels in MFC (Static text) that have both bold and non-bold text. Something like this:

"I would like my label to look like this, for example"

Any thoughts of how to do this?

I know that I can change the font of the entire label and have it either bold or not, but is there any way of merging more than one style, or maybe give an html-like label?

Inhabiter answered 10/12, 2009 at 15:43 Comment(0)
A
3

Instead of a static control, use a RichEdit control containing appropriately marked up text.

Atiptoe answered 10/12, 2009 at 15:51 Comment(1)
OK, I used the RichEdit control with Border=False and Transparent=True. Thanks.Inhabiter

© 2022 - 2024 — McMap. All rights reserved.