Windows API Guide: DeleteFile Function


Public Function EnumFontFamExProc (ByVal lpelfe As Long, ByVal lpntme As Long, ByVal FontType As Long, ByVal lParam As Long) As Long   ' application-specific code goes here End Function

Description & Usage

The EnumFontFamExProc callback function processes each font enumerated by EnumFontFamiliesEx. The function receives a large amount of information describing both the logical font attributes as well as its metrics. Information describing TrueType fonts is received by the function in a slightly different format than non-TrueType font information. This function does not necessarily have to be named EnumFontFamExProc -- that is simply the name given to it in discussions about the Windows API.

Return Value

If the function returns 0, EnumFontFamiliesEx immediately stops enumerating fonts. If the function returns a non-zero value, EnumFontFamiliesEx continues enumerating fonts as long as another one can be found.

Visual Basic-Specific Issues

Like all callback functions, EnumFontFamExProc must be declared Public and be defined in a module.

Parameters

lpelfe
A pointer to an ENUMLOGFONTEX structure describing the logical attributes of the font.
lpntme
If the font is a TrueType font, this is a pointer to a NEWTEXTMETRICEX structure. If the font is not a TrueType font, this is a pointer to a TEXTMETRIC structure. Either structure describes the text metrics of the font.
FontType
A combination of the following flags (although usually only one is used) identifying the type of font:
DEVICE_FONTTYPE
The font is a device font.
RASTER_FONTTYPE
The font is a raster font.
TRUETYPE_FONTTYPE
The font is a TrueType font.
lParam
Additional data specified by EnumFontFamiliesEx.

Constant Definitions

Const DEVICE_FONTTYPE = &H2 Const RASTER_FONTTYPE = &H1 Const TRUETYPE_FONTTYPE = &H4

Used By

EnumFontFamiliesEx

Go back to the Callback Function listing.
Go back to the Reference section index.


Last Modified: October 23, 1999
This page is copyright © 1999 Paul Kuliniewicz. Copyright Information Revised October 29, 2000
Go back to the Windows API Guide home page.
E-mail: vbapi@vbapi.com Send Encrypted E-Mail
This page is at http://www.vbapi.com/ref/e/enumfontfamexproc.html



Windows API Guide
Windows API Guide - Reference - Volume 1: Version 3.0 For the MS-DOS and PC-DOS Operating Systems
ISBN: B001V0KQIY
EAN: N/A
Year: 1998
Pages: 610

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net