网站首页  词典首页

请输入您要查询的函数:

 

术语 gettextface
释义 GetTextFace
语法:
int GetTextFace(
__in HDC hdc,
__in int nCount,
__out LPTSTR lpFaceName
);
GetTextFace功能
该GetTextFace函数检索字体名称的字体选择到指定的设备上下文。
参数
hdc [in]
一个句柄,设备上下文。
nCount [in]
缓冲区的长度指向lpFaceName。对于ANSI函数这是一个字节数和Unicode的功能,这个词的罪名。请注意,对于ANSI函数,在半角字符代码页采取每一个字节,而在DBCS代码页最字符需要两个字节;为Unicode的功能,大多数目前的定义Unicode字符(在基本多文种平面(BMP)的)这些都是一个字而Unicode代理人两个词。
lpFaceName [out]
一个缓冲区,它接收字体名称的指针。如果该参数为NULL,则函数返回名称的字符数,包括终止空字符。
返回值
如果函数成功,返回值是复制到缓冲区的字符数。
如果函数失败,返回值是零。
备注
该字体的名称是按原样复制一个空结束的字符串。
如果名称是长于的nCount参数指定的字符数,名称被截断。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode和ANSI namesGetTextFaceW(Unicode)和GetTextFaceA(ANSI)的
参见
字体和文字概述
字体和文本函数
GetTextAlign
GetTextColor
GetTextExtentPoint32
GetTextMetrics
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GetTextFace Function
The GetTextFace function retrieves the typeface name of the font that is selected into the specified device context.
Syntax
int GetTextFace(
__in HDC hdc,
__in int nCount,
__out LPTSTR lpFaceName
);
Parameters
hdc [in]
A handle to the device context.
nCount [in]
The length of the buffer pointed to by lpFaceName. For the ANSI function it is a BYTE count and for the Unicode function it is a WORD count. Note that for the ANSI function, characters in SBCS code pages take one byte each, while most characters in DBCS code pages take two bytes; for the Unicode function, most currently defined Unicode characters (those in the Basic Multilingual Plane (BMP)) are one WORD while Unicode surrogates are two WORDs.
lpFaceName [out]
A pointer to the buffer that receives the typeface name. If this parameter is NULL, the function returns the number of characters in the name, including the terminating null character.
Return Value
If the function succeeds, the return value is the number of characters copied to the buffer.
If the function fails, the return value is zero.
Remarks
The typeface name is copied as a null-terminated character string.
If the name is longer than the number of characters specified by the nCount parameter, the name is truncated.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode and ANSI namesGetTextFaceW (Unicode) and GetTextFaceA (ANSI)
See Also
Fonts and Text Overview
Font and Text Functions
GetTextAlign
GetTextColor
GetTextExtentPoint32
GetTextMetrics
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144940(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:25:19