15,979
社区成员
发帖
与我相关
我的任务
分享
CHARFORMAT cf;//注意头文件
cf.dwMask |= CFM_ITALIC;
cf.dwEffects = cf.dwEffects | CFE_ITALIC;
m_RichTex.SetDefaultCharFormat(cf);
m_RichTex.SetWindowText("输出内容");
Sets the character formatting attributes for new text in this CRichEditCtrl object.
BOOL SetDefaultCharFormat(
CHARFORMAT& cf
);
BOOL SetDefaultCharFormat(
CHARFORMAT2& cf
);
Sets the character formatting attributes for the currently selected word in this CRichEditCtrl object.
BOOL SetWordCharFormat(
CHARFORMAT& cf
);
BOOL SetWordCharFormat(
CHARFORMAT2& cf
);