| VB声明 |
| Declare Function EnumFontFamiliesEx Lib "gdi32"
Alias "EnumFontFamiliesExA" (ByVal hdc As Long, lpLogFont As LOGFONT, ByVal
lpEnumFontProc As Long, ByVal lParam As Long, ByVal dw As Long) As Long |
| 说明 |
| 根据一个LOGFONT结构提供的信息,列举指定设备可用的字体 |
| 返回值 |
| Long,由回调函数返回的前一个值 |
| 参数表 |
| 参数 |
类型及说明 |
| hdc |
Long,设备场景的句柄 |
| lpLogFont |
LOGFONT,这个结构指定了欲枚举的字体。此时用到的字段包括:lfCharSet,
lfFaceName 和 lfPitchAndFamily。其他所有字段都会忽略 |
| lpEnumFontFamProc |
Long,欲调用的函数地址。这个地址是用 AddressOf
运算符为来自一个标准模块的函数进行操作,或者利用某个回调控件得到 |
| lParam |
Long,指定希望传递给回调函数的一个用户自定义值 |
| dw |
Long,保留,设为零 |
| 注解 |
参见EnumFontFamilies函数的注解 |