CRichEditCtrl使用CHARFORMAT這個結構設置字體,顏色,字號

編輯框爲CRichEditCtrl,在CWinApp中的InitInstance中添加AfxInitRichEdit2方法,而後使用CHARFORMAT這個結構設置字體風格與顏色, 在對話框上放置CRichEditCtrl,而後爲對話框類關聯變量m_RichEditCtrl int i=1; //第二行行號 int start=m_RichEditCtrl.LineIndex(i); //第二行開
相關文章
相關標籤/搜索