Bold labels in MFC

独自空忆成欢 提交于 2019-12-10 21:54:37

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/1881865/bold-labels-in-mfc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!