网站首页  词典首页

请输入您要查询的函数:

 

术语 gettextextentpointi
释义 GetTextExtentPointI
语法:
BOOL GetTextExtentPointI(
__in HDC hdc,
__in LPWORD pgiIn,
__in int cgi,
__out LPSIZE lpSize
);
GetTextExtentPointI功能
该GetTextExtentPointI函数计算的宽度和标志符号索引指定数组的高度。
参数
hdc [in]
句柄设备上下文。
pgiIn [in]
指针数组标志符号索引。
的CGI [in]
指定的标志符号索引数量。
lpSize [out]
指针的规模结构,它接收字符串的层面,逻辑单位。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
该GetTextExtentPointI函数使用当前选定的字体来计算的标志符号索引的数组的尺寸。宽度和高度的逻辑单位,是计算不考虑任何剪辑。
当返回文本的范围,此函数假定文本是Level的,那就是,纵始终为0。这是正确的,无论是文字Level和垂直测量。即使使用一种字体指定非零擒,此功能将不使用的角度,而计算的文字的程度-应用程序必须将它明确。
由于某些设备克恩字符,个人标志符号程度指数的总和可能不等于指数的标志符号的整个数组的程度。
计算字符串的宽度考虑到字符间的间隔由SetTextCharacterExtra的功能集。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
字体和文字概述
字体和文本函数
GetTextExtentPoint
GetTextExtentPoint32
SetTextCharacterExtra
尺寸
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GetTextExtentPointI Function
The GetTextExtentPointI function computes the width and height of the specified array of glyph indices.
Syntax
BOOL GetTextExtentPointI(
__in HDC hdc,
__in LPWORD pgiIn,
__in int cgi,
__out LPSIZE lpSize
);
Parameters
hdc [in]
Handle to the device context.
pgiIn [in]
Pointer to array of glyph indices.
cgi [in]
Specifies the number of glyph indices.
lpSize [out]
Pointer to a SIZE structure that receives the dimensions of the string, 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 GetTextExtentPointI function uses the currently selected font to compute the dimensions of the array of glyph indices. The width and height, in logical units, are computed without considering any clipping.
When returning the text extent, this function assumes that the text is horizontal, that is, that the escapement is always 0. This is true for both the horizontal and vertical measurements of the text. Even if using a font specifying a nonzero escapement, this function will not use the angle while computing the text extent - the application must convert it explicitly.
Because some devices kern characters, the sum of the extents of the individual glyph indices may not be equal to the extent of the entire array of glyph indices.
The calculated string width takes into account the intercharacter spacing set by the SetTextCharacterExtra function.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Fonts and Text Overview
Font and Text Functions
GetTextExtentPoint
GetTextExtentPoint32
SetTextCharacterExtra
SIZE
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144939(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:23:06