网站首页  词典首页

请输入您要查询的函数:

 

术语 getenhmetafiledescription
释义 GetEnhMetaFileDescription
语法:
UINT GetEnhMetaFileDescription(
__in HENHMETAFILE hemf,
__in UINT cchBuffer,
__out LPTSTR lpszDescription
);
GetEnhMetaFileDescription功能
该GetEnhMetaFileDescription函数检索从一个增强型图元文件格式,并复制到指定的缓冲区字符串可选的文字说明。
参数
hemf [in]
一个句柄,增强型图元。
cchBuffer [in]
大小,以字符的缓冲区来接收数据。只有这样多的字符将被复制。
lpszDescription [out]
阿一个缓冲区,它接收可选文字说明指针。
返回值
如果可选文字说明存在缓冲区指针为NULL,则返回值是文本字符串长度字符。
如果可选文字说明存在缓冲区指针是一个有效的指针,返回值是复制到缓冲区的字符数。
如果可选文字说明不存在,返回值是零。
如果函数失败,返回值是GDI_ERROR。
备注
可选的文字说明包含两个字符串,则先确定应用程序创建的增强型图元,第二个确定了图元文件中包含的图片。分隔的字符串由一个空字符和两个空charactersfor例如终止,“某某图形编辑\\ 0Bald鹰\\ 0 \\ 0”其中\\ 0表示空字符。
凡文本参数必须使用Unicode字符作为宽字符功能,此功能。凡文本参数必须使用Windows字符集,文字的使用功能,作为一个ANSI此功能。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode和ANSI namesGetEnhMetaFileDescriptionW(Unicode)和GetEnhMetaFileDescriptionA(ANSI)的
参见
图元文件概述
图元文件函数
CreateEnhMetaFile
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GetEnhMetaFileDescription Function
The GetEnhMetaFileDescription function retrieves an optional text description from an enhanced-format metafile and copies the string to the specified buffer.
Syntax
UINT GetEnhMetaFileDescription(
__in HENHMETAFILE hemf,
__in UINT cchBuffer,
__out LPTSTR lpszDescription
);
Parameters
hemf [in]
A handle to the enhanced metafile.
cchBuffer [in]
The size, in characters, of the buffer to receive the data. Only this many characters will be copied.
lpszDescription [out]
A pointer to a buffer that receives the optional text description.
Return Value
If the optional text description exists and the buffer pointer is NULL, the return value is the length of the text string, in characters.
If the optional text description exists and the buffer pointer is a valid pointer, the return value is the number of characters copied into the buffer.
If the optional text description does not exist, the return value is zero.
If the function fails, the return value is GDI_ERROR.
Remarks
The optional text description contains two strings, the first identifying the application that created the enhanced metafile and the second identifying the picture contained in the metafile. The strings are separated by a null character and terminated with two null charactersfor example, "XYZ Graphics Editor\\0Bald Eagle\\0\\0" where \\0 represents the null character.
Where text arguments must use Unicode characters, use this function as a wide-character function. Where text arguments must use characters from the Windows character set, use this function as an ANSI function.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode and ANSI namesGetEnhMetaFileDescriptionW (Unicode) and GetEnhMetaFileDescriptionA (ANSI)
See Also
Metafiles Overview
Metafile Functions
CreateEnhMetaFile
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144882(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 11:22:59