术语 | enumenhmetafile |
释义 | EnumEnhMetaFile 语法: BOOL EnumEnhMetaFile( __in HDC hdc, __in HENHMETAFILE hemf, __in ENHMFENUMPROC lpEnhMetaFunc, __in LPVOID lpData, __in const RECT *lpRect ); EnumEnhMetaFile功能 枚举函数的EnumEnhMetaFile在一个增强型图元文件格式,通过检索每个记录并传递到指定的回调函数的记录。应用程序提供的回调函数需要处理每个记录。枚举继续进行,直到最后一条记录处理或当回调函数返回零。 参数 hdc [in] 一个句柄,设备上下文。此句柄传递给回调函数。 hemf [in] 句柄到增强型图元。 lpEnhMetaFunc [in] 该申请的指针提供的回调函数。有关详细信息,请参阅EnhMetaFileProc功能。 lpData [in] 一个可选的回调函数的数据指针。 lpRect [in] 一个RECT结构,指定的坐标,按逻辑单位的图片的左上角和低,右四个方向的指针。 返回值 如果成功地枚举回调函数中的所有增强型图元文件记录,返回非零值。 如果回调函数不列举所有成功的增强型图元文件记录,返回值是零。 备注 沿边缘点的矩形所指向lpRect参数是在画面中。如果为HDC参数为NULL,系统忽略lpRect。 如果回调函数调用PlayEnhMetaFileRecord功能,HDC公司必须找到一个有效的设备上下文。该系统使用的设备环境的映射模式转换和改造的PlayEnhMetaFileRecord功能显示的图片。 您可以使用EnumEnhMetaFile功能嵌入到一个又一个增强型图元文件。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWingdi.h(头文件:winuser.h) LibraryGdi32.lib DLLGdi32.dll 参见 图元文件概述 图元文件函数 EnhMetaFileProc PlayEnhMetaFile PlayEnhMetaFileRecord RECT 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==EnumEnhMetaFile Function The EnumEnhMetaFile function enumerates the records within an enhanced-format metafile by retrieving each record and passing it to the specified callback function. The application-supplied callback function processes each record as required. The enumeration continues until the last record is processed or when the callback function returns zero. Syntax BOOL EnumEnhMetaFile( __in HDC hdc, __in HENHMETAFILE hemf, __in ENHMFENUMPROC lpEnhMetaFunc, __in LPVOID lpData, __in const RECT *lpRect ); Parameters hdc [in] A handle to a device context. This handle is passed to the callback function. hemf [in] A handle to an enhanced metafile. lpEnhMetaFunc [in] A pointer to the application-supplied callback function. For more information, see the EnhMetaFileProc function. lpData [in] A pointer to optional callback-function data. lpRect [in] A pointer to a RECT structure that specifies the coordinates, in logical units, of the picture's upper-left and lower-right corners. Return Value If the callback function successfully enumerates all the records in the enhanced metafile, the return value is nonzero. If the callback function does not successfully enumerate all the records in the enhanced metafile, the return value is zero. Remarks Points along the edge of the rectangle pointed to by the lpRect parameter are included in the picture. If the hdc parameter is NULL, the system ignores lpRect. If the callback function calls the PlayEnhMetaFileRecord function, hdc must identify a valid device context. The system uses the device context's transformation and mapping mode to transform the picture displayed by the PlayEnhMetaFileRecord function. You can use the EnumEnhMetaFile function to embed one enhanced-metafile within another. Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWingdi.h (include Windows.h) LibraryGdi32.lib DLLGdi32.dll See Also Metafiles Overview Metafile Functions EnhMetaFileProc PlayEnhMetaFile PlayEnhMetaFileRecord RECT Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd162613(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。