CHARFORMAT 结构怎么是设置字形啊
CHARFORMAT 结构怎么是设置字形啊
1.设置为普通类型,
2.设置为粗体,
怎么设置呢,
[解决办法]
typedef struct _charformat { UINT cbSize; DWORD dwMask; DWORD dwEffects; LONG yHeight; LONG yOffset; COLORREF crTextColor; BYTE bCharSet; BYTE bPitchAndFamily; TCHAR szFaceName[LF_FACESIZE];} CHARFORMAT;dwEffectsCharacter effects. This member can be a combination of the following values. CFE_AUTOCOLORThe text color is the return value of GetSysColor(COLOR_WINDOWTEXT).CFE_BOLDCharacters are bold.CFE_DISABLEDRichEdit 2.0 and later: Characters are displayed with a shadow that is offset by 3/4 point or one pixel, whichever is larger.CFE_ITALICCharacters are italic.CFE_STRIKEOUTCharacters are struck.CFE_UNDERLINECharacters are underlined.CFE_PROTECTEDCharacters are protected; an attempt to modify them will cause an EN_PROTECTED notification message.
[解决办法]
http://happyhaoyun.blog.163.com/blog/static/2119926020103164311992/
[解决办法]