RichEdit_SetFontfunction
Sets the font used by a rich edit control.
Syntax
FUNCTION RichEdit_SetFont (BYVAL hRichEdit AS HWND, BYREF wszFaceName AS WSTRING, BYVAL ptsize AS LONG) AS LRESULT
Parameters
| Name | Description | |
|---|---|---|
hRichEdit | The handle of the rich edit control. | |
wszFaceName | The font name. | |
ptsize | The font size in points. |
Return value
If the operation succeeds, the return value is a nonzero value.
If the operation fails, the return value is zero.
Description
Sets the font used by a rich edit control.
Reference
- Defined in AfxNova/AfxRichEdit.inc:1192
- Documented in Windows/WIndows Controls/RichEdit/RichEdit Procedures.md
- Topic: RichEdit Procedures