Upravit

Sdílet prostřednictvím


EM_GETCHARFORMAT message

Determines the character formatting in a rich edit control.

Parameters

wParam

Specifies the range of text from which to retrieve formatting. It can be one of the following values.

Value Meaning
SCF_DEFAULT
The default character formatting.
SCF_SELECTION
The current selection's character formatting.

lParam

A CHARFORMAT structure that receives the attributes of the first character. The dwMask member specifies which attributes are consistent throughout the entire selection. For example, if the entire selection is either in italics or not in italics, CFM_ITALIC is set; if the selection is partly in italics and partly not, CFM_ITALIC is not set.

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

This message returns the value of the dwMask member of the CHARFORMAT structure.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Richedit.h

See also

Reference

CHARFORMAT

CHARFORMAT2