Click here to Skip to main content
15,906,569 members
Please Sign up or sign in to vote.
4.20/5 (2 votes)
See more:
How can I make some text bold in an VC++ mfc message box?
Posted
Updated 3-Mar-11 22:14pm
v2
Comments
m@dhu 4-Mar-11 1:36am    
Duplicate post deleted. Use Improve question to update your question don't post new one.

You cannot using the standard message box. However, there are a couple of possible replacements on CP:


If you don't want to use a drop in replacement, but do this yourself, then you'll want to look at subclassing the MFC message box - the article[^] mentioned by CPallini shows how to subclass the message box
 
Share this answer
 
v3
You have to make your own version of the message box. The techniques explained in the following (bit dated) article may help: "Do not ask again" Message Boxes[^].
:)
 
Share this answer
 
My personal favourite custom message box is XMessageBox - A reverse-engineered MessageBox()[^]. This will automatically style itself to look like the Vista message box on Vista and 7.
 
Share this answer
 
Comments
Graham Shanks 4-Mar-11 8:23am    
I like and use this one too, but it doesn't support bold text
Andrew Brock 4-Mar-11 22:32pm    
Then make it. The idea of having the source is that you can change it easily.

If I remember correctly, it already uses custom fonts, so just set the fBold parameter to TRUE.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900