网站首页  词典首页

请输入您要查询的函数:

 

术语 enumfontsproc
释义 EnumFontsProc
语法:
int CALLBACK EnumFontsProc(
__in const LOGFONT *lplf,
__in const TEXTMETRIC *lptm,
__in DWORD dwType,
__in LPARAM lpData
);
EnumFontsProc功能
该EnumFontsProc函数是一个应用程序definedcallback功能,处理从EnumFonts功能字体数据。在FONTENUMPROC类型定义一个指向这个回调函数。 EnumFontsProc是一个应用程序的definedfunction名称的占位符。
注意:此功能仅提供了兼容性与16位的Windows版本。应用程序应该调用EnumFontFamiliesEx功能。
参数
lplf [in]
一个 LOGFONT结构,其中包含字体的逻辑属性信息的指针。
这可以是一个ENUMLOGFONTEXDV结构。
lptm [in]
一个 TEXTMETRIC结构,它包含关于字体的物理属性信息的指针。
这可以是一个ENUMTEXTMETRIC结构。
dwType [in]
字体类型。此参数可以是以下值的组合:
DEVICE_FONTTYPE
RASTER_FONTTYPE
TRUETYPE_FONTTYPE
lpData [in]
该申请的指针定义EnumFonts传递的数据。
返回值
返回值必须是一个非零值,继续枚举;停止枚举,它必须为零。
备注
在与(&)运算符可以用来与RASTER_FONTTYPE和DEVICE_FONTTYPE常量确定的字体。该FontType参数RASTER_FONTTYPE位指定的字体是否是光栅或矢量字体。如果位是1,字体是一个光栅字体,如果为零,它是一个矢量字体。在FontType DEVICE_FONTTYPE位指定的字体是否是一个基于设备或图形设备接口(GDI)的字体。如果位是1,字体是一个基于设备的字体,如果为零,它是一个基于GDI的字体。
如果该设备是能够文本转换(缩放,italicizing,等等)只有基本字体枚举。用户必须调查该装置的文本转化的能力,以确定哪些额外的字体,可直接从设备。
应用程序必须通过其登记地址的EnumFonts函数EnumFontsProc功能。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
Unicode和ANSI namesEnumFontsProcW(Unicode)和EnumFontsProcA(ANSI)的
参见
字体和文字概述
字体和文本函数
EnumFonts
ENUMLOGFONTEXDV
ENUMTEXTMETRIC
逻辑字体
TEXTMETRIC
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==EnumFontsProc Function
The EnumFontsProc function is an application definedcallback function that processes font data from the EnumFonts function. The FONTENUMPROC type defines a pointer to this callback function. EnumFontsProc is a placeholder for the application definedfunction name.
Note This function is provided only for compatibility with 16-bit versions of Windows. Applications should call the EnumFontFamiliesEx function.
Syntax
int CALLBACK EnumFontsProc(
__in const LOGFONT *lplf,
__in const TEXTMETRIC *lptm,
__in DWORD dwType,
__in LPARAM lpData
);
Parameters
lplf [in]
A pointer to a LOGFONT structure that contains information about the logical attributes of the font.
This can be an ENUMLOGFONTEXDV structure.
lptm [in]
A pointer to a TEXTMETRIC structure that contains information about the physical attributes of the font.
This can be an ENUMTEXTMETRIC structure.
dwType [in]
The type of the font. This parameter can be a combination of the following values:
DEVICE_FONTTYPE
RASTER_FONTTYPE
TRUETYPE_FONTTYPE
lpData [in]
A pointer to the application-defined data passed by EnumFonts.
Return Value
The return value must be a nonzero value to continue enumeration; to stop enumeration, it must be zero.
Remarks
The AND (&) operator can be used with the RASTER_FONTTYPE and DEVICE_FONTTYPE constants to determine the font type. The RASTER_FONTTYPE bit of the FontType parameter specifies whether the font is a raster or vector font. If the bit is one, the font is a raster font; if zero, it is a vector font. The DEVICE_FONTTYPE bit of FontType specifies whether the font is a device-based or graphics device interface (GDI)-based font. If the bit is one, the font is a device-based font; if zero, it is a GDI-based font.
If the device is capable of text transformations (scaling, italicizing, and so on) only the base font is enumerated. The user must inquire into the device's text-transformation abilities to determine which additional fonts are available directly from the device.
An application must register the EnumFontsProc function by passing its address to the EnumFonts function.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
Unicode and ANSI namesEnumFontsProcW (Unicode) and EnumFontsProcA (ANSI)
See Also
Fonts and Text Overview
Font and Text Functions
EnumFonts
ENUMLOGFONTEXDV
ENUMTEXTMETRIC
LOGFONT
TEXTMETRIC
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162623(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:19:27