|
-
February 5th, 2009, 05:58 PM
#1
CEdit box with variable fonts
I want to change the fonts of the text in my mutli-line editbox. I've found how to change the default font of the entire control, but it is possible to just change one line to either bold or underline? If so, how?
For example: I currently write to the editbox like this:
CString textstr = "hello world\r\nFoobar";
CEdit * Editbox1 = (CEdit*) GetDlgItem(IDC_EDIT1);
Editbox1 ->SetWindowText(textstr);
How would I make "Foobar" bold, and "hello world" regular?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|