Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

Inserts a new font into the internal collection of custom fonts and returns an index of the inserted font or -1 if hFont is invalid or equal to NULL.

INT GridFontInsert(
   HFONT hFont,
   INT nIdx = -1,
   bool bCopyFont = true
);

Parameters

pIcon
Font handle.
nIdx
Font index that should be assigned to the handle in the internal collection. To append this font handle to the collection, set this parameter to -1.
bCopyFont
Indicates that a new copy of the font will be created if bCopyIcon is true; the object specified with pIcon will be used otherwise.

Remarks

By default, text in all cells is drawn using a font specified in the current paint manager (CExtScrollItemWnd::OnSiwGetDefaultFont()). You can add a custom font using CExtGridWnd::GridFontInsert() and use this font for drawing text in a particular cell (CExtGridCell::FontIndexSet()).

See Also

CExtGridWnd Overview | Class Members | Hierarchy Chart