CRichEdit.GetCharFormatmethod
Determines the current character formatting in a rich edit control.
Syntax
FUNCTION GetCharFormat (BYVAL hRichEdit AS HWND, BYVAL fOption AS DWORD, BYVAL lpcf AS CHARFORMATW PTR) AS DWORD
Parameters
| Name | Description | |
|---|---|---|
hRichEdit | The handle of the rich edit control. | |
fOption | Specifies the range of text from which to retrieve formatting. It can be one of the following values. SCF_DEFAULT The default character formatting. SCF_SELECTION The current selection's character formatting. | |
lpcf | A pointer to 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. |
Return value
This message returns the value of the dwMask member of the CHARFORMAT structure.
Description
Determines the character formatting in a rich edit control.
Reference
- Defined in AfxNova/CRichEdit.inc:381
- Documented in Windows/WIndows Controls/CRichEdit Class.md
- Topic: CRichEdit Class