送交者: 江毅 于 2005-2-23, 09:18:57:
回答: 将字体设为中文字体或者即使是西文字体。。。 由 江毅 于 2005-2-23, 09:03:46:
例如:
CRichEditCtrl& re = GetRichEditCtrl();
CHARFORMAT cf;
cf.cbSize = sizeof(CHARFORMAT);
re.GetSelectionCharFormat(cf);
cf.bCharSet = GB2312_CHARSET;//CHINESEBIG5_CHARSET;
cf.bPitchAndFamily = 2;
cf.dwMask = CFM_CHARSET;// | CFM_FACE;
SetCharFormat(cf);