CRichEdit.SetFontmethod
Sets the font used by a rich edit control.
Syntax
FUNCTION 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/CRichEdit.inc:1377
- Documented in Windows/WIndows Controls/CRichEdit Class.md
- Topic: CRichEdit Class