【请教】如何更改RichEditCtrl中文本的颜色??
CString str1,str2;
str1= "this is a richeditbox+\r\n ";
str2= "this is not a richeditbox+\r\n ";
str2+=str1;
m_RichEdit.SetWindowText(str2); //m_RichEdit是CRichEditCtrl型变量
请教在输出这两行字符时如何让第一行显示红色第二行显示黑色??
[解决办法]
http://www.vckbase.com/code/viewcode.asp?id=1269
给你一个例子:
其中的命令selectcolor