CListView.ModifyHeaderFontmethod
Modifies the font used by the listview header.
Syntax
FUNCTION ModifyHeaderFont (BYVAL hListView AS HWND, BYREF wszFaceName AS WSTRING, BYVAL lPointSize AS LONG, BYVAL lWeight AS LONG, BYVAL bItalic AS BYTE, BYVAL bUnderline AS BYTE, BYVAL bStrikeOut AS BYTE, BYVAL bCharSet AS BYTE) AS HFONT
Parameters
| Name | Description | |
|---|---|---|
hListView | Handle to the ListView control. | |
wszFaceName | The name of the font. | |
lPointSize | The font point size. | |
lWeight | The font weight. | |
bItalic | Italic, true or false. | |
bUnderline | Underline, true or false. | |
bStrikeOut | StrikeOut, true or false. | |
bCharset | Character set. |
Return value
The handle of the new font. The returned font must be destroyed with DeleteObject when no longer needed to prevent memory leaks.
Description
Modifies the font used by the listview header.
Reference
- Include file
CListView.inc - Defined in AfxNova/CListView.inc:2140
- Documented in Windows/WIndows Controls/CListView Class.md
- Topic: CListView Class