CRichEditCtrl使用CHARFORMAT这个结构设置字体,颜色,字号

编辑框为CRichEditCtrl,在CWinApp中的InitInstance中添加AfxInitRichEdit2方法,而后使用CHARFORMAT这个结构设置字体风格与颜色, 在对话框上放置CRichEditCtrl,而后为对话框类关联变量m_RichEditCtrl int i=1; //第二行行号 int start=m_RichEditCtrl.LineIndex(i); //第二行开
相关文章
相关标签/搜索