网站首页  词典首页

请输入您要查询的函数:

 

术语 settextcharacterextra
释义 SetTextCharacterExtra
语法:
int SetTextCharacterExtra(
__in HDC hdc,
__in int nCharExtra
);
SetTextCharacterExtra功能
该SetTextCharacterExtra函数设置字符间的间隔。字符间的间隔被添加到每个字符,包括打破字符,当系统写入一行文本。
参数
hdc [in]
一个句柄,设备上下文。
nCharExtra [in]
额外的空间量,按逻辑单位,被添加到每个字符。如果当前的映射模式不是MM_TEXT的nCharExtra参数转化并四舍五入至最接近的像素。
返回值
如果函数成功,返回值是前一个字符间的间隔。
如果函数失败,返回值是0x80000000。
备注
此功能主要用于支持与现有应用程序的兼容性。新的应用程序,一般应避免调用这个函数,因为它是与复杂的脚本(脚本,需要形成文字相抵触;阿拉伯文字是一个例子)。
建议的做法是不是调用这个函数,然后TextOut,应用程序应调用ExtTextOut,并使用其lpDx参数提供宽度。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
字体和文字概述
字体和文本函数
DrawText
GetTextCharacterExtra
TextOut
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==SetTextCharacterExtra Function
The SetTextCharacterExtra function sets the intercharacter spacing. Intercharacter spacing is added to each character, including break characters, when the system writes a line of text.
Syntax
int SetTextCharacterExtra(
__in HDC hdc,
__in int nCharExtra
);
Parameters
hdc [in]
A handle to the device context.
nCharExtra [in]
The amount of extra space, in logical units, to be added to each character. If the current mapping mode is not MM_TEXT, the nCharExtra parameter is transformed and rounded to the nearest pixel.
Return Value
If the function succeeds, the return value is the previous intercharacter spacing.
If the function fails, the return value is 0x80000000.
Remarks
This function is supported mainly for compatibility with existing applications. New applications should generally avoid calling this function, because it is incompatible with complex scripts (scripts that require text shaping; Arabic script is an example of this).
The recommended approach is that instead of calling this function and then TextOut , applications should call ExtTextOut and use its lpDx parameter to supply widths.
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
DrawText
GetTextCharacterExtra
TextOut
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd145092(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:18:40