CHARFORMAT

更新时间:2023-07-17 10:35:39 阅读: 评论:0

The CHARFORMAT structure contains information about character formatting in a rich edit control.
Rich Edit 2.0: The CHARFORMAT2 structure is a Microsoft Rich Edit 2.0 extension of the CHARFORMAT禁止踩踏 structure. Rich Edit 2.0 and later allows you to u either structure with the EM_GETCHARFORMAT and EM_SETCHARFORMAT messages.
 
Syntax
typedef struct _charformat {
UINT cbSize;
DWORD dwMask;
DWORD dwEffects;
LONG yHeight;
LONG yOfft;
COLORREF crTextColor;
BYTE bCharSet;
BYTE bPitchAndFamily;
TCHAR szFaceName[LF_FACESIZE];
} CHARFORMAT;
Members
cbSize
Size in bytes of the specified structure. This member must be t before passing the structure to the rich edit control.
大小字节的特定结构。这个成员必须定后才通过结构,以丰富的编辑控制。
dwMask
Members containing valid information or attributes to t. This member can be zero, one, or more than one of the following values.
成员包含有效信息或属性设置。这个成员可以是零,一个或多个下列情形之一的有效信息。
CFM_BOLD
The CFE_BOLD value of the dwEffects member is valid.
CFE_BOLD 值使的dwEffects成员是有效的。
CFM_CHARSET
The bCharSet member is valid.
bCharSet 成员是有效的。
CFM_COLOR
生姜皮
The crTextColor member and the CFE_AUTOCOLOR value of the dwEffects member are valid.
crTextColor 值及CFE_AUTOCOLOR 的dwEffects 成员有效。
CFM_FACE
The szFaceName member is valid.
szFaceName 成员是有效的。
CFM_ITALIC
The CFE_ITALIC value of the dwEffects member is valid.
CFE_ITALIC 值使 dwEffects 成员有效。
CFM_OFFSET
The yOfft member is valid.
使yOfft 成员有效。
CFM_PROTECTED
The CFE_PROTECTED value of the dwEffects member is valid.
CFE_PROTECTED 值使dwEffects有效。
CFM_SIZE
要的反义词The yHeight member is valid.
使yHeight 成员有效。
CFM_STRIKEOUT
The CFE_STRIKEOUT value of the dwEffects member is valid.
CFE_STRIKEOUT 值使dwEffects 成员有效。
CFM_UNDERLINE.
The CFE_UNDERLINE value of the dwEffects member is valid.
CFE_UNDERLINE 值使dwEffects 成员有效。
dwEffects
Character effects. This member can be a combination of the following values.
性格的影响。这个会员,可结合以下的价值观。
CFE_AUTOCOLOR
The text color is the return value of 长治小吃GetSysColor(COLOR_WINDOWTEXT).
文本颜色是返回值getsyscolor ( color_windowtext )。
CFE_BOLD
Characters are bold.
加粗。
CFE_DISABLED
英语每日一句
RichEdit 2.0 and later: Characters are displayed with a shadow that is offt by 3/4 point or one pixel, whichever is larger.
richedit 2.0和后来:字符显示一个阴影,是抵消了3 / 4点或1个像素,两者较大。
CFE_ITALIC
三朵娇菊
Characters are italic.
斜体。
CFE_STRIKEOUT
晚礼服Characters are struck.
删除线。
CFE_UNDERLINE
Characters are underlined.
下划线。
CFE_PROTECTED
Characters are protected; an attempt to modify them will cau an EN_PROTECTED notification message.
汉字的保障;企图修改它们会造成en_protected通知讯息。
yHeight
Character height, in twips (1/1440 of an inch or 1/20 of a printer's point).
字符高度,在twips ( 1 / 1440的一英寸或1 / 20的一台打印机的点)。
yOfft
Character offt, in twips, from the baline. If the value of this member is positive, the character is a superscript; if it is negative, the character is a subscript.
性格偏移,在twips ,从基线。如果价值的会员,这是积极的,性格是一个标;如果是否定的,性格是一个标。
crTextColor
Text color. This member is ignored if the CFE_AUTOCOLOR character effect is specified. To generate a COLORREF, u the RGB macro.
文字色彩。这个成员被忽略,如果cfe_autocolor性格的影响是指明。以产生colorref ,使用的RGB宏观调控。
bCharSet
Character t value. The bCharSet member can be one of the values specified for the lfCharSet member of the LOGFONT structure. Rich Edit 3.0 may override this value if it is invalid for the target characters.
字符集的价值。该bchart会员,可其中的价值指定为lfchart成员之一logfont结构。丰富的编辑3.0可以推翻这个值,如果是无效的目标人物。
bPitchAndFamily
Font family and pitch. This member is the same as the lfPitchAndFamily member of the LOGFONT土豆发芽能不能吃 structure.
字体家人和足球场。这个会员是一样的lfpitchandfamily成员之一logfont结构。
szFaceName
Null-terminated character array specifying the font name.
零终止字符数组指明字体名称。
Remarks
This structure is ud with the EM_GETCHARFORMAT and EM_SETCHARFORMAT messages.
Structure Information
Header
Declared in Richedit.h
Minimum operating systems
Windows 95, Windows NT 4.0
Unicode
Implemented as ANSI and Unicode versions.

本文发布于:2023-07-17 10:35:39,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/82/1101216.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:成员   字符   指明   价值   字体
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图