导航:  Windows Controls Procedures > Rich Edit Control > Wrappers >

RichEdit_GetCharFormat

上一页返回章节概述下一页

描述

 

确定富编辑控件中的当前字符格式.您可以使用此功能或发送EM_GETCHARFORMAT消息明确.

 

FreeBasic Syntax

FUNCTION RichEdit_GetCharFormat ( _

BYVAL hRichEdit AS HWND, _

BYVAL fOption AS DWORD, _

BYVAL lpcf AS CHARFORMAT PTR _

) AS DWORD

 

参数

hRichEdit

[in]富文本编辑器控件的句柄

fOption

[in]指定字符格式应用于控件.它可以是下列值之一.

 

SCF_DEFAULT

获取默认字符格式.

SCF_SELECTION

获取当前选择的字符格式.

lpbo

[in]指向CHARFORMAT结构.如果选择的格式是被检索的结构,接收到的第一个字符的属性和dwMask成员指定的属性在整个的选择是一致的.

 

Microsoft Rich Edit 2.0 and later: This parameter can be a pointer to a CHARFORMAT2 structure, which is an extension of the CHARFORMAT structure. Before sending the EM_GETCHARFORMAT message, set the structure's cbSize member to indicate the version of the structure.

 

Return Value

 

此消息返回dwMask的成员CHARFORMAT结构.

 

最低操作系统

 

Windows NT 4.0. 95,

 

引用文件

 

AfcRichEdit.inc