I am having a message window to display an error message. In that message some text should be bold and underlined. I am using static text. I am using the following code.
m_font.CreateFont(10,0,0,0,FW_BOLD,0,0,0,0,0,0,0,0,"Arial");
GetDlgfItem(Id of the lable)->SendMessage(WM_SETFONT,WPARAM(HFONT)),0);
Using this I can make it as bold. But I am not able change the boldness of the text. And how can I underline the text in the label.
Thanks in advance.
Try This
Or you can use
http://msdn.microsoft.com/en-us/library/2ek64h34.aspx