网站首页  词典首页

请输入您要查询的函数:

 

术语 getcharwidthfloat
释义 GetCharWidthFloat
语法:
BOOL GetCharWidthFloat(
__in HDC hdc,
__in UINT iFirstChar,
__in UINT iLastChar,
__out PFLOAT pxBuffer
);
GetCharWidthFloat功能
该GetCharWidthFloat函数检索在从当前字体指定范围内的连续字符宽度的分数。
参数
hdc [in]
一个句柄,设备上下文。
iFirstChar [in]
对在连续字符组的第一个字符的代码点。
iLastChar [in]
对在连续字符组的最后一个字符的代码点。
pxBuffer [out]
阿一个缓冲区,它接收字符宽度的逻辑单位,指针。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
返回的宽度在32位IEEE浮点格式。 (测量的宽度沿字符的底线。)
如果iFirstChar参数指定信一和iLastChar参数指定的字母Z,GetCharWidthFloat检索所有小写字符的宽度。
如果字符不存在当前字体,它被分配默认的字符的宽度。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode和ANSI namesGetCharWidthFloatW(Unicode)和GetCharWidthFloatA(ANSI)的
参见
字体和文字概述
字体和文本函数
GetCharABCWidths
GetCharABCWidthsFloat
GetCharWidth32
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GetCharWidthFloat Function
The GetCharWidthFloat function retrieves the fractional widths of consecutive characters in a specified range from the current font.
Syntax
BOOL GetCharWidthFloat(
__in HDC hdc,
__in UINT iFirstChar,
__in UINT iLastChar,
__out PFLOAT pxBuffer
);
Parameters
hdc [in]
A handle to the device context.
iFirstChar [in]
The code point of the first character in the group of consecutive characters.
iLastChar [in]
The code point of the last character in the group of consecutive characters.
pxBuffer [out]
A pointer to a buffer that receives the character widths, in logical units.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
The returned widths are in the 32-bit IEEE floating-point format. (The widths are measured along the base line of the characters.)
If the iFirstChar parameter specifies the letter a and the iLastChar parameter specifies the letter z, GetCharWidthFloat retrieves the widths of all lowercase characters.
If a character does not exist in the current font, it is assigned the width of the default character.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode and ANSI namesGetCharWidthFloatW (Unicode) and GetCharWidthFloatA (ANSI)
See Also
Fonts and Text Overview
Font and Text Functions
GetCharABCWidths
GetCharABCWidthsFloat
GetCharWidth32
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144863(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:21:55