Help Center

CListView.ModifyHeaderFontmethod

Modifies the font used by the listview header.

WindowsmethodCListView.incdocumented

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

NameDescription
hListViewHandle to the ListView control.
wszFaceNameThe name of the font.
lPointSizeThe font point size.
lWeightThe font weight.
bItalicItalic, true or false.
bUnderlineUnderline, true or false.
bStrikeOutStrikeOut, true or false.
bCharsetCharacter 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