网站首页  词典首页

请输入您要查询的函数:

 

术语 getcharwidthi
释义 GetCharWidthI
语法:
BOOL GetCharWidthI(
__in HDC hdc,
__in UINT giFirst,
__in UINT cgi,
__in LPWORD pgi,
__out LPINT lpBuffer
);
GetCharWidthI功能
该GetCharWidthI函数检索宽度,在逻辑坐标指数连续字形,在从当前字体指定的范围。
参数
hdc [in]
一个句柄,设备上下文。
giFirst [in]
在该指数连续字形小组第一标志符号索引。
的CGI [in]
标志符号索引的数量。
环素 [in]
一个一个标志符号索引数组的指针。如果这个参数不为NULL,它被用来代替giFirst参数。
lpBuffer [out]
阿一个缓冲区,它接收宽度指针,在逻辑坐标。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
该GetCharWidthI函数处理一个标志符号索引,如果连续的PGI参数为NULL,说明与giFirst第一字形指数工艺参数和CGI参数显示有多少字形指数去的过程。否则GetCharWidthI职能过程中产生的标志符号索引的数组指向的带有cgi显示有多少字形指数,工艺参数环素参数。
如果字符不存在当前字体,它被分配默认的字符的宽度。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
字体和文字概述
字体和文本函数
GetCharABCWidths
GetCharABCWidthsFloat
GetCharWidth32
GetCharWidthFloat
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GetCharWidthI Function
The GetCharWidthI function retrieves the widths, in logical coordinates, of consecutive glyph indices in a specified range from the current font.
Syntax
BOOL GetCharWidthI(
__in HDC hdc,
__in UINT giFirst,
__in UINT cgi,
__in LPWORD pgi,
__out LPINT lpBuffer
);
Parameters
hdc [in]
A handle to the device context.
giFirst [in]
The first glyph index in the group of consecutive glyph indices.
cgi [in]
The number of glyph indices.
pgi [in]
A pointer to an array of glyph indices. If this parameter is not NULL, it is used instead of the giFirst parameter.
lpBuffer [out]
A pointer to a buffer that receives the widths, in logical coordinates.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
The GetCharWidthI function processes a consecutive glyph indices if the pgi parameter is NULL with the giFirst parameter indicating the first glyph index to process and the cgi parameter indicating how many glyph indices to process. Otherwise the GetCharWidthI function processes the array of glyph indices pointed to by the pgi parameter with the cgi parameter indicating how many glyph indices to process.
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
See Also
Fonts and Text Overview
Font and Text Functions
GetCharABCWidths
GetCharABCWidthsFloat
GetCharWidth32
GetCharWidthFloat
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144864(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:16:56